orlandoju

Ejer15_tp3

Apr 14th, 2022
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1.  
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main(void){
  6.  
  7.     int i,n;
  8.     int contdiv=0;
  9.     cout<< " Ingrese un numero positivo: "<<endl;
  10.     cin>>n;
  11.  
  12.             cout<<"Es un numero primo";
  13.             if(n%n==0 && n%1 ==0)
  14.             {
  15.                 cout<<"Es un numero primo";
  16.             }
  17.  
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment