If Statement in C++
Get Into Code provides you with free C++ and Java Course in Hindi/Urdu and also provides you the opportunity to practice your skills to be perfect. In the previous video we have discussed about the Arithmetic Operations in C++. In this video we are going to discuss about If Statement in C++.
If Statement
In your daily life you have to make some decisions and these decisions are based on some condition faced by you. Similarly, You have to make some decisions in programs as well.
DECISION DETERMINE DESTINYIf Statement is used to make Decision in C++. It consists of three Parts.
- If Keyword
- Condition
- Body
Syntax
if ( Condition ) { Body }
Watch The Video Below to Understand If Statement in C++
Respected output will be as
Enter the Day Number
3
Today is Wednesday
No comments