Question: Programming language is C++ PA 6-2 (25 points) Ask the user for a positive integer. Output whether the integer is odd or even. Tell the
PA 6-2 (25 points) Ask the user for a positive integer. Output whether the integer is odd or even. Tell the user if the value input was not a positive integer. (Hint: %) 3DlCodeBlocks-EPlCodeBlocks-EPMarsh20501bin Debug DCodeBlocks-EPCodeBlocks-EPMMarsh2050bin Debugi Input a positive integer:47 The integer is odd. Input a positive integer: -12 The integer is not positive
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
