Even Odd Program with only integers of length 2 or higher

Write a C++ program in which a user enter a number, and the program will find the Even and odd number.

Your program should only accept integers of length 2 or higher and should ask the user to re-enter a value if the value containing total numbers of integers less than 2. The program with goto statement.

For example:

Integers with length 1: 1,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9

Integers with length 2: 10, 11, 12 ,13 ,14 ,15 ,16 ,17 ,18 ,19, 20 ,……99

Integers with length more than 2: 100, 101, 102 ,103 ,……

Even Odd Program with only integers of length 2 or higher

Even Odd Program with only integers of length 2 or higher by using goto statement

Output

Even Odd Program with only integers of length 2 or higher

 

Latest posts by Prof. Fazal Rehman Shamil (see all)

Buy advertisement space on T4Tutorials

For more details email [email protected]