Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Za daden broj da se ispecati dali e prost//
- #include <iostream>
- using namespace std;
- int main()
- {
- int n,brojac,broj;
- cout<<"Vnesi broj "<<endl;
- cin>>n;
- broj=1;
- brojac=0;
- for(broj=1;broj<=n;broj++)
- {
- for(brojac=0;brojac<2;brojac++)
- {
- if(n%broj==0)
- cout<<"brojot e prost"<<endl;
- }
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment