Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int numberInput, remainderValue;
- cout << "Enter a Number: ";
- cin >> numberInput;
- remainderValue = numberInput % 2;
- if (remainderValue == 0)
- cout << numberInput << " is an even integer." << endl;
- else
- cout << numberInput << " is an odd integer." << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement