Posted By

cuspajzodgraha on 04/14/15


Tagged


Versions (?)

Greyfoxov prvi


 / Published in: C++
 

trebam nekaj napisat kaj bude public jbg

  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<cmath>
  4. using namespace std;
  5.  
  6. int main(){
  7.  
  8. for(int i=65;i<91;i++){
  9. bool prost=1;
  10. for(int j=2; j<sqrt(i);j++)
  11. if(i%j==0){
  12. prost=0;
  13. break;
  14. }
  15. if(prost) cout<<(char)i<<endl;
  16. }
  17.  
  18. system("PAUSE");
  19. return 0;
  20. }

Report this snippet  

You need to login to post a comment.