Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Program: parimpar.cc
- // Author: Yoan Pinzon
- // Date: Agosto 30, 2006
- #include <iostream>
- using namespace std;
- int main()
- {
- int x;
- cout << "Par Impar" << endl;
- cout << "=========" << endl;
- cout << "Entre un numero = "; cin >> x;
- if( x % 2 == 0 )
- {
- cout << "El numero " << x << " es PAR" << endl;
- }
- else
- {
- cout << "El numero " << x << " es IMPAR" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement