Method-1 || Check Odd Even in C++ #coding #programming #youtubeshorts
@ApnaCollegeOfficial @CodingCrazeIndia
💠Instagram Page📷 :-
/ coding_craze4
________________________________________________
🔷About C++
°°°°°°°°°°°°°°°°°
C++ is a powerful general-purpose programming language. It can be used to develop operating systems, browsers, games, etc. C++ supports different ways of programming like procedural, object-oriented, functional. This makes C++ powerful as well as flexible.
C++ is also known as superset of C programming language.
🔷Program Explanation
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
An Even number is a number which is completely divisible by the number 2. If completely not divisible by 2 then the number is an Odd number.
In this program first we have declared a variable 'num' of type int (integer) which we use to store a number entered by the user.
After that we have asked the user to enter a number by using the cout, and storing that number into variable 'num' with the help of cin.
Once we get the input from the user, we check the condition that is the number completely divisible by 2 ? If yes then the number is an Even number otherwise Odd.
So, based on the result of if condition, the output will be displayed to the user. If condition is true then, if block get executed otherwise else block get executed.
Hope you understood the code and it helped you to move at least one step forward in your coding journey.
Thank you for watching the video, Hit the like button and do subscribe our YouTube channel.
________________________________________________
♦keywords :
How to check a number is even or odd?
Program to check a number is odd or even
C++ program to check a number is even or odd
Simple C++ program to check a number is either odd or even
learning C++ programming
programming code
C++ programming language
defining an integer variable in C++
C++ programming
learn programming
input and output stream in C++ programming
if else condition in C++
Use of cout and cin in C++
_________________________________________________
#shorts #ytshorts #codingshorts
#youtubeshorts #learncoding #learncodingonline
#coding #include #codingwithmobile
#c++programming #programming #youtubeshorts #coding_for_beginners #coding_is_thinking #codinglife #codingisfun #coding_solutions #coding_knowledge
#cprogramming #coding_programs
#codingcraze #codingcrazeindia