C++ Nested IF ELSE and IF ELSEIF | CPP Programming Video Tutorial

preview_player
Показать описание
In this c++ / cpp programming video tutorials / lecture for beginners video series, you will learn about the else if and nested if and else with example.

You will learn how to use else if in your program and also how to nest if and else in detail.

Learn Programming in HINDI at our youtube channel

Catch us on Social Media
Рекомендации по теме
Комментарии
Автор

Amazing how you have made so many of these short instructional videos. This is a great idea, keeps our attention and is best for when we are just starting off as beginners! I love your videos also, as do the others!

tarunnallur
Автор

I've watched many videos for learning c++ but this is the best video series I've watched... simple explanation.. easily Subscribed ✌️✌️✌️

mrunalikudtarkar
Автор

Nice, but you could have shown an example for the nested if. Nvm.. I am in 11th class, and i think your videos are great...

hein_ji
Автор

great tutorials hoping these stay this clear all the way through aha ill know the basics in no time

lordoftheseans
Автор

Amazing Anil..Good Job yar.
Itna to mere college professor ne bhi nhi btaya tha.Thanks a lot man.

narayanbhagat
Автор

why u r not using cin for reading the values from user,
it makes ur teaching more efficient.

pavanmudhole
Автор

Although you explain it well. Please provide examples also. So that the concept gets clear enough

sumitagrawal
Автор

Sir you made me subscribe from your first video❤️ such a best explanation 💟 continue like this😊 loved your from Hyderabad 💥

aakanksha
Автор

Your not middle age till your about 45 lol but this is excellent, only 8 views . You need to market these my friend.  I was have done Java and VB programming and C++ is a different beast. I was running equations and I couldn't get the value of x to change, then I saw you run them on your tutorial and my mistake was I was using cout << "x =" << x +y << endl;  when i should of just written x=x + y then put the cout to display x ...this allowed my variable to store its new value as where when i did it in cout it wasn't storing it.  These are helpful tutorials I think. 

Cole-icss
Автор

What if we use:

if (age<20)
{
cout<<"Statement 1";
}
else (age<40)
{
cout<<"Statement 2";
}

Jaya
Автор

Hey man m in love with your tuts. I hope you make a c++ 2d platformer game xD. A series on it.

KalponicGames
Автор

Sir. You have explained it very well.sir but i have one question why you haven’t used end1 at the end ... is it cause any problem if i use

arunrandhk
Автор

Hello first of all thank you for the nice videos ^^ i have a question i tried to put a CIN at the beginning of the program but after 1 use i need to start it new how can i fix that ?

thanks for the help

SpecialLeutnant
Автор

Hello Anil sir!! great videos..But i have a question that in the above example how was if and else were nested? i mean we used curly braces for each if's, else if's and else..we never nested any of the if's in one another!!
Anil sir please make one more video of nested if and else..A detailed video with multiple examples. This topic is quite tricky as it is and now multiple if' and else's are making it even more confusing...thanks a lot for all your videos!!

jayantjolly
Автор

Thanks For The Tutorial!!!! VERY HELPFUL!!!!

NMWorksNMW
Автор

What if we want to check if it's the right name? How do you use character instead of integer ?

diptikulkarni
Автор

What is the difference between the "else if" statement and the nested ifs? When do you use the one, and when the other?

CindyK
Автор

How to install software which you are using to run C++ programs? Thanks

riteshtheunknown
Автор

//did with user defined age n Anil ki jai ho.
#include <iostream>

using namespace std;

int main()
{
int age ;
cout <<"Enter ur age between 1 to 100: ";
cin >>age;
if(age<=20)
{
cout <<"you are Teenager";
}
else if (age<=40){
cout << "You are middle age";
}
else
cout << "You are old man";

return 0;

}

mominuber
Автор

why did you not put endl; when you finished after cout

ynesgam-kwxn