Answer to Question #5763 in C++ for Aysha salem
Write a C++ program that prompt the user to input a positive integer. The program should then output the number and a message saying whether the number is even or odd.
printf("enter the number to find odd or even: ");
if (topic%2==0) printf("the number is even\n");
else printf("the number is odd\n");
Learn more about our help with Assignments: C++