ValerianBenchea

Paritatea numerelor

Oct 16th, 2019
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n; cin>>n;
  8.         if(n%2==0)
  9.         cout<<"numarul este par";
  10.         else
  11.         cout<<"numarul este impar";
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment