Working Log
Programming tutorial, tips and tricks
Pages
Home
About Us
Wednesday, September 25, 2013
Cara Membuat Bilangan Ganjil dengan PHP
Cara membuat bilangan ganjil dengan PHP
<?php
for($i=1; $i<=100; $i++)
{
if($i%2==1)
echo ("$i<br>");
}
?>
$i%2 ->> artinya nilai $1 dibagi 2 maka sisanya berapa , jika sisa hasil bagi 1= Ganjil tapi jika 0= Genap .
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Konsultasi
About Me
admin
Semoga Bermanfaat
View my complete profile
Radio Muslim
Pages - Menu
Home
About Us
No comments:
Post a Comment