How to find even and odd numbers in c++ program using if else statement.

preview_player
Показать описание
In this C++ video tutorial you will learn to write a cpp program to
cheak whether the number entered by the user is even or odd.

An even number is an integer which is evenly divisible by 2.If the number is not even then it is an odd number.

Here in this program we are using the modulus (%) operater to get the remainder and then we are using if statement to print out the result.
#C++ Programing
Рекомендации по теме
welcome to shbcf.ru