Conditionals (if-else, Nested if and else if)
Вставка
- Опубліковано 14 чер 2018
- C Programming & Data Structures: Conditionals (if-else, Nested if and else if)
Topics discussed:
1) If else basics explained with a real-world example.
2) Nested if basics explained with a real-world example.
3) Else if basics explained with a real-world example.
4) Frequently asked questions:
i) Is it necessary to put the else part?
ii) Difference between the examples with curly braces and without curly braces.
iii) Why are curly braces used?
C Programming Lectures: goo.gl/7Eh2SS
Follow Neso Academy on Instagram: @nesoacademy(bit.ly/2XP63OE)
Follow me on Instagram: @jaspreetedu(bit.ly/2YX26E5)
Contribute: www.nesoacademy.org/donate
Memberships: bit.ly/2U7YSPI
Books: www.nesoacademy.org/recommende...
Website ► www.nesoacademy.org/
Forum ► forum.nesoacademy.org/
Facebook ► goo.gl/Nt0PmB
Twitter ► / nesoacademy
Music:
Axol x Alex Skrindo - You [NCS Release]
#CProgrammingByNeso #CProgramming #ifelse #Nestedif #elseif
No one taught me if else like this i will never forget this😍😍
Perfect!this is how students want their teachers to teach like this.love you bro 💖
This is the best you tube channel for CS tutorials..i have ever seen..thank you
What an explanation! The greatest i've ever found on youtube! Hats off! Respect! 👍💪☝️💓
Oh my God!!!!! You've provided the best context to explain if-else-if statements. Much Love bro ♥
Damn you explained it so well
thank you for making this hell slightly more baring, as a physics student who was forced by the university to program (i have no idea what is going on, and in my opinion one can always hire a programmer to write a code that will calculate for me) and to program in C, the most antient one possible i don't think i'd even stand a chance to pass without these videos. thanks again.
same thing as a 10th grader
Neso never put us down.. always there to provide us valuable knowledge.
With respect from Pakistan ❤️love the method of teaching ❤️❤️❤️
Thank you Sir for your Dedication 🙏 🙏🙏
Best channel to learn the concept of CS 👌👌
Thank you so much this helped me a lot . god bless you
😲Wow, the way of your teaching is excellent👏
Excellento, perfecto, just what I needed.💯💯.Please make videos with real life examples like this one.
thanks alot your examples are easily understandable
Namaste sir.🙏🙏
I never get anyone like you.
Your teaching style is awesome.
Love from Bangladesh 🇧🇩
very good video and excellent work plus it is simple and clear cut for understanding
He is so damn brilliant . Hands down NESO
Sir after long time...great to see u😇
very very Nicely explained with live example. Thank you.
So can we say if we have a second ‘option’ we can use else if? Simplify very informative and also filled in some gaps I had about control flow. Please can you more and relate them to androids and sites because I’ve been struggling to reach the actual examples to why we had to use such logic in the first place to execute a statement
I understand everything abut if else in this video thank you sir 😌
Mindblowing explanation.
Thanks. Perfect explanation I have ever seen.
Love from Nepal❤
This is the best UA-cam channel ❤❤
Upload introduction to programming and programming languages...
Algorithms and data structures of each program languages
Thats very clear, Good explanation!
Thank you sir.
Wonderful real world example
You teach so well. How do I start watching your C tutorials from the first one? I can’t find this is the playlist.
The condition part need the Boolean value., although why "if(if(1))" gets error??
Thankyou for the example. Ot's very easy to understand
Great explanation sir
superb analogy
this is cool!
thank you mate.. its clear for me now
What a clear explanation ❤❤
ur teaching that perfect congrats
Your views on all videos are going to increase this year. I have shared your all videos on our university's course content online on blackboard. Your videos are amazing.
-Professor from Chandigarh University
increadible explanation❤
MASTER AT WORK words suits you...
thankyouuu for teaching me
Easy to learn 🤗👍
This is so good
You have many fans
❣️
Outstanding 👌👌plz do more videos
What an explanation man!!
when you teach us ,everything seems more easy
Am impressed
Sir when u taught I feel like programming is very easy thing in this world...
Thank you so much
You're good at teaching better than my prof
can we use more than one else if ladder
Am regretting for knowing this channel 24hours left for my exams😂. BY THE WAY I have still gain much.
THANKS PROF
Please is there NESTED-FOR as NESTED-IF??
You are the best!
Thanks for taking the time to explain everything so easily.
Regards from barcelona (spain) from a struggling C50 course taker.
This is what teachers are to be make students grasp easily 😁
Please activate subtitles for all c programming course
Outstanding
Very useful tq bro
Nice explanation sir thank you keep doing sir all the best 🎉🎉
I love you guys, you make me see the C light
Sir please post new videos in this playlist asap...I am preparing for placement... And this playlist is helping me a lot... Thank you😊
Every thing is perfect
Thanks!
Sir please upload full series soon
Best explanation 🥰😍🤩
Very useful .....🤗
Thanks ✨️
Thank you gurujii😇🌼🤗🙏
very nice
Amazing 😍🤩
Thank u
Congratulations for 1M Neso Academy Family🔥🔥🔥
thnk you sir
What is difference between if and else if then ?
simply wow
i want to the slides in course c
I am bad at programming but after watching neso academy i am doing well
perfection
Sir plz start c++ .....Extremely needed
Is there any difference between A an B?
A:
if(n == 4)
printf("n is 4");
if(n != 4)
printf("n is not 4")
B:
if(n == 4)
printf("n is 4");
else
printf("n is not 4")
Does "else" can always change into "if" ?
You can construct as many as "If" you want, but you can't use an "else" command without a previous "if". You can replace a second "if" with an "else" if you know that the result is going to be either TRUE or FALSE.
A and B is same
please make tutorial on python programming
Great tutorial, however you compared an IF ELSE scenario to just an IF scenario in the last two examples about using curly braces or not. Not the same
does indentation require after if, if we put only a single statement after it?
no
At 6:55 as far i know there is post increment in n..then how it can be 6 after execution ...i think it should be 5 .. because it is post increment not pre
I suck at explaining so how do i put this.hmmm
Just think that if dealing with single standing increment/decrement i.e a++ , n++ , i ++
then the process of incrementing value by one would be completed no matter what. ex.
i = 0;
i++
Then i would be equal to 1 , as well as
++i it is equal to one now too.
But when incrementing values is associated with equations ex.
i = 0;.
a= i++; here a = 0 and i = 1
While
i = 0;
a= ++i; here a= 1 and i =1
You have to exercise the rule of post and pre when dealing with equations.
Hope it helps
I suck ahahhaa
Super 👌🏻👌🏻👌🏻👌🏻
Welcome back neso.....😀😀😀
Notes?
How to install c in PC proper ly.... pls anyone answer
download code blocks and then boom panis
Sir Please Complete the Syllabus...😧😧😧
Sir u just missed ; in example 2 for a printf function 😅 but excellence in ur
Fast and best
please give tutorial of python
Which IDE do you use?
Code blocks
😮
best best best
Sir, Actually in the mentioned example there is error you forget to add termination
int n =5 ;
Waiting for Python videos sir
nah, only c, c++, and java are beasts!
8 out of 10
Got 6/10..Thank u neso for helping me in improving the c language..,I got better conceptual clarity.keep helping by giving free education to all..,make the country proud...😀❤️❤️
greetings everyone
5