Advertisement
ferdhika31

Ganjil Genap

Oct 29th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.15 KB | None | 0 0
  1. <?php
  2. for($a=1;$a<=12;$a++){
  3.     if($a%2){
  4.     echo $a." ganjil <br>";
  5.     }else{
  6.     echo $a;
  7.     if($a==12){echo " Ferdhika ";}
  8.     echo " genap <br>";
  9.     }
  10. }
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement