Question: Modify the program, even.cpp , to output if an inputted integer is even or odd. For example, if the input is 1, the program should
Modify the program, even.cpp, to output if an inputted integer is even or odd.
For example, if the input is 1, the program should output, "1 is odd." If the input is 100, the program should output "100 is even."
Remove the "To Do" from the comment once you have implemented that part of the code.
- Deternines if a nunben is even or odd. +f inclide \&iostreaas using naneispace std: 8 9 Lnt aaln() 11 in int nust II Got a nusber from the user coot es Fenter a saberialicin sx numi cout endiz cott c
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
