that_one_nigga_you_k

kjk022

Aug 11th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <locale.h>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.     setlocale(LC_ALL,"Portuguese");
  8.     int n1;
  9.    
  10.     cout<<"digite um número";
  11.     cin>>n1;
  12.    
  13.     if(n1%2 = 0){
  14.         cout<<"esse úmero é par";
  15.     }
  16.     if(n1%2 != 0){
  17.         cout<<"esse número é impar";
  18.     }
  19.    
  20.     return 0;
  21. }
Add Comment
Please, Sign In to add comment