membuat tampilan bilangan genap dan ganjil dengan php

okee,, sekarang saya mau update tentang bagaimana membuat tampilan bilangan genap dan ganjil
<?php 
echo "</pre>
<h3>POSTEST</h3>
<pre>
";
    for($i=1;$i<=100;$i++){
    if($i%2==0){
        echo  $i . " adalah genap
" ;
    }
    else{
    echo  $i . " adalah ganjil
" ;
    }
    }
?>
Posted in Uncategorized

komentar

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

calender lalu
April 2013
T W T F S S M
« Mar    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Error: Twitter did not respond. Please wait a few minutes and refresh this page.

Information
081-917- 166-???
Lunch: 11am - 2pm
Dinner: M-Th 5pm - 11pm, Fri-Sat:5pm - 1am
%d bloggers like this: