#include
#include

void main(){

int bil, jum, i;
cout <<"Masukkan sebuah bilangan bulat positif; "; cin >> bil;

jum = 0;
for (i =1; i <= bil; i++)
if (bil % i == 0)
jum++;

if (jum == 2){
cout << "Bilangan Prima\n";
}else{
cout << "Bukan Bilangan Prima\n";
}
getch();
}

Ok Selamat Mencoba.....

Label : automotive Hotels pimmy ride Phone Cell Property wallpapers Anti Vir car body design

0 komentar:

Posting Komentar

Mari berbagi ilmu disini meski sekedar coretan saja....

http://www.google.com/friendconnect/api/people/ http://www.google.com/friendconnect/api/activities/ http://www.google.com/friendconnect/api/appdata/