Working Log
Programming tutorial, tips and tricks
Pages
Home
About Us
Wednesday, September 25, 2013
Cara membuat bilangan prima dengan PHP
berikut ini scriptnya :
<?php
for($i=1;$i<=100;$i++){
$a = 0;
for($j=1;$j<=$i;$j++){
if($i % $j == 0){
$a++;
}
}
if($a == 2){
echo $i.'';
}
}
<?
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