Module: Subroutines: procedures and functions - 2


Problem

7/10

We use a logical function

Problem

Given a function that returns "True" if it got an even number and "False" if it got an odd number.
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.