" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
#include <iostream>
#include <conio.h>
using namespace std;
int main(){
int bil, jum, i;
cout << "";
do {
cin >> bil;
jum = 0;f
or (i=1; i<=bil; i++)
if (bil%i==0)
jum++;
if (jum==2)
cout << "Merupakan bilangan prima \n";
else if (jum==0){cout <<
"Program Selesai \n";
}
else {
cout << "Bukan bilangan prima \n";
}
}
while( bil > 0 );
return 0;
}