Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int n,ok=1;
- cout <<"n="; cin>>n;
- for (int i=2; i<=n/2;i++)
- if (n%i==0)
- ok=0;
- if (ok)
- cout<<"nr. prim"<< endl;
- else
- cout << "nr. compus" << endl;
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement