Guest User

Untitled

a guest
May 22nd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. //Za daden broj da se ispecati dali e prost//
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int n,brojac,broj;
  9.     cout<<"Vnesi broj "<<endl;
  10.     cin>>n;
  11.     broj=1;
  12.     brojac=0;
  13.     for(broj=1;broj<=n;broj++)
  14.     {
  15.         for(brojac=0;brojac<2;brojac++)
  16.         {
  17.             if(n%broj==0)
  18.             cout<<"brojot e prost"<<endl;
  19.         }
  20.     }
  21.  
  22.     return 0;
  23. }
Add Comment
Please, Sign In to add comment