fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin >> n;
  7.  
  8. if ( !(n % 2 == 0) ){
  9. cout << "Impar";
  10. }
  11. else {
  12. cout << "Par";
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 4892KB
stdin
3
stdout
Impar