69 679
Assignments Done
Successfully Done
In February 2019

Answer to Question #71341 in C++ for yalfal kassaw

Question #71341
reade an integer value from the keybord and display a message indicating if this number is odd or even
Expert's answer
#include <iostream>
using namespace std;

int main()
int n;
cout << "Enter number: ";
cin >> n;
if (n%2)
cout << "Number is odd" << endl;
cout << "Number is even" << endl;

return 0;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions