Module: (C++) Subroutines: Procedures and Functions - 2


Problem

8/11

We use the logical function

Problem

Given a function that returns "True" if it's an even number and "False" if it's odd.
Using this function, write a program that requests a natural number from the keyboard, and if it is odd, then displays the number 1 more than the original number, otherwise it displays the original number itself.