C_28 If-Else Statement in C | C Programming Tutorials

  Рет қаралды 204,203

Jenny's Lectures CS IT

Jenny's Lectures CS IT

Күн бұрын

In this video, I have discussed if-else control statement in C Language | Syntax, Working, Flowchart, Examples, Programs
Best C Programming Tutorials : • Programming in C
*******************************************
Connect & Contact Me:
My Second Channel Link: bit.ly/354n7C7
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/...
Instagram: / jayantikhatrilamba
Twitter: / khatrijenny
*********************************************
More Playlists:
C++ Programming Tutorials: • Lec 1: How to Install ...
Placement Series: • Placements Series
Data Structures and Algorithms: https: • Data Structures and Al...
Design and Analysis of Algorithms(DAA): • Design and Analysis of...
Python Full Course: • Python - Basic to Advance
Printing Pattern in C: • Printing Pattern Progr...
Dynamic Programming: • Dynamic Programming
Operating Systems: // • Operating Systems
DBMS: • DBMS (Database Managem...
#cprogramming #jennyslectures #programming #clanguage #controlstatements #ifelse

Пікірлер: 203
@shashikamal2481
@shashikamal2481 3 жыл бұрын
Attendance here👍🏻...just for ma'am 😁❤️
@gchandrababu6041
@gchandrababu6041 2 жыл бұрын
Absolutely ❤️❤️❤️😂😂🤣🤣
@venkatasrikar4305
@venkatasrikar4305 Жыл бұрын
😅😊
@TENALI-STUDIOS
@TENALI-STUDIOS 7 ай бұрын
Hi ❤
@sanketpatil2563
@sanketpatil2563 2 ай бұрын
Present mam😁🙌
@osmanpasha2252
@osmanpasha2252 3 жыл бұрын
When I will watch your video then I will get complet clarity on topic thanks a lot mam and your way of teaching is awesome hands of to your teaching and didn't ever watched this type of teaching style
@hariparuchuru3858
@hariparuchuru3858 2 жыл бұрын
1. Enter age:25 25 Go home Out of if-else 2. Enter age:32 32 Go home Out of if-else
@blaze102
@blaze102 Жыл бұрын
Wrong it will be age=25 and age=32
@RachitSrivastava69
@RachitSrivastava69 9 ай бұрын
@@blaze102 all of u r wrong see scanf statement
@saravanaselva6643
@saravanaselva6643 2 ай бұрын
Why it is wrong..?
@devsharma3331
@devsharma3331 Ай бұрын
@@RachitSrivastava69 lol
@cortexop7347
@cortexop7347 Ай бұрын
wrong h bhai 1) pheli baat tune enter ke aage (:)ye kese lga diya 2) scanf("%d",&age); hoga mam & likhna bhul gyi 3) tune kudse kese (next line) lga di output 1)for age = 25 enter age25 age=25go homeout of if-else 2)for age =32 enter age32 age=32go homeout if else
@elavarasan_r154
@elavarasan_r154 3 жыл бұрын
1. Enter 25 and 32 Go home Out of the if-else Both also same output
@RajvardhanKadam-hu2em
@RajvardhanKadam-hu2em 6 ай бұрын
Right
@RajvardhanKadam-hu2em
@RajvardhanKadam-hu2em 6 ай бұрын
Right
@brindhavenugopal4395
@brindhavenugopal4395 3 жыл бұрын
ASSIGNMENT(11.53) Mam after compilation I got only one error that is MISPLACE ELSE. I got an output after clear the above error mam. Thank u soo much mam. I understood very well.
@beautyofworld8130
@beautyofworld8130 Жыл бұрын
Bcz ur teaching again I got interest in c language mam... starting I'm worried about I'm not getting..but now I'm clear understanding
@solomonfensico
@solomonfensico 3 жыл бұрын
AN ERROR IN THE LECTURE’S LAST CODE- Hi Jenny ma'am, Firstly you're my fav teacher by far. I love the way you teach. Top notch. Thank you so much for your lectures. I started learning C (my first computer language) with the help of your videos and I feel so confident. Please keep up the good work. God bless you. Secondly, after many repeated failed attempts. I finally realized that there was an error in the code @12:40 (the 'address of' operator '&' is missing in scanf function), Because of which the whole code wasn't getting executed., also it didn't display the error in the code too). I don't know how others haven't realized this but Yes this was a great exercise for me. Hope this helps someone having a similar issue. Not a major 1 though.
@yumyum9892
@yumyum9892 2 жыл бұрын
abe kam se kam itna to khud ki akal lagani chahie na......tu kya chahta hai, grammer seekhne ke vakt koi tujhe vapas abcd revise karae..maam is also human only....it is the duty of student to neglect small mistakes and move ahead!!
@satyajitmanna8501
@satyajitmanna8501 2 жыл бұрын
scanf("%d",&age); hoba
@satyajitmanna8501
@satyajitmanna8501 2 жыл бұрын
maam age er aga & likhen ni.
@rukayatmuhammed3670
@rukayatmuhammed3670 Жыл бұрын
Mheen...thanks
@deerghaneja1217
@deerghaneja1217 3 жыл бұрын
Mam...the way u just taught us is incredible♥️♥️
@malviyatimes
@malviyatimes 3 жыл бұрын
Dear Jenny Some Questions for you. 1. How to become computer scientist. 2. How to develop/create low level language like assembly language. 3. How to develop/create high level language like python, kotlin, c++ and more.
@rajinimurugan5201
@rajinimurugan5201 2 жыл бұрын
Spr question
@chinweijeomaijy
@chinweijeomaijy Жыл бұрын
I think you can start by watching videos and reading books
@awadhbalshikshaniketan2004
@awadhbalshikshaniketan2004 3 жыл бұрын
Best video i have ever seen🔥
@maryannemuthoni5388
@maryannemuthoni5388 10 ай бұрын
For 25: age: 25 Go home Out of if else For 32: age: 32 Go home Out of if else
@AnuSurya10
@AnuSurya10 15 күн бұрын
Answer for the assignment: 25: age = 25. Go Home. Out of if-else. 32: age = 32. Go Home. Out of if-else. Also, there's an error. In the scanf function, the variable is missing *"&"*.
@jitendrapratapsingh9189
@jitendrapratapsingh9189 2 жыл бұрын
enter age : 25 age :25 go to home out of if-else enter age : 32 age :32 go to home out of if-else
@naveenmarri-0242
@naveenmarri-0242 3 жыл бұрын
You have to maintain an another channel of beauty tips💡😄.. Pretty beautiful teacher ever🥰
@teenagerexperiments757
@teenagerexperiments757 8 ай бұрын
mam both have same answer age=25 go home out of if and else or age=32 go home out of if and else
@manvendra91102
@manvendra91102 3 жыл бұрын
Please make a video on graphs in data structure I am waiting for that video your explanation is very good mam thank you so much
@souradeepmondal1936
@souradeepmondal1936 2 жыл бұрын
Ma'am you don't write & after age....in scanf(); This time you ar not attentive too much..😂...❤️
@souradeepmondal1936
@souradeepmondal1936 2 жыл бұрын
Sorry are*
@lalitharamachandra6659
@lalitharamachandra6659 8 ай бұрын
10:50 hello mam For age:25 output: go home Out of if-else block For age:32 Output :go home Out of if-else block Thanks mam Your classes are very helpful for me mam
@sudipacharya1974
@sudipacharya1974 3 жыл бұрын
❤️❤️ way of teaching is just 🔥🔥
@vectorpharmacy284
@vectorpharmacy284 Жыл бұрын
In the first program there is a erroe you didnot right & in scanf().
@justbecreative5133
@justbecreative5133 5 ай бұрын
ur comment really solved my error at last
@madhumalipremarathna3038
@madhumalipremarathna3038 3 жыл бұрын
12:22 Enter age : 25 Age : 25 Go home Out of if-else Enter age : 32 Age : 32 Go home Out of if-else
@krishnapriya3872
@krishnapriya3872 3 жыл бұрын
Yeah correct
@baluch9558
@baluch9558 2 жыл бұрын
Bro error vastundi program lo , because there is no "& " in scanf
@junedpathan4466
@junedpathan4466 Жыл бұрын
@@baluch9558 yes ma'am forgot that but you can consider that bro
@smartdude4574
@smartdude4574 3 жыл бұрын
Her voice 🔥✨💫
@sainithyamsani4062
@sainithyamsani4062 2 жыл бұрын
Mam whenever you give a homework at the end of the video please comment on that question in your next video.Provide answer for that homework in your next video,so that we can know whether we got correct answer or not.
@bcadiary6958
@bcadiary6958 3 жыл бұрын
I really admire your teaching thanku mam
@krupa1963
@krupa1963 3 жыл бұрын
1) Enter age:25 age : 25 Go home Out of if-else 2) Enter age : 30 Age : 30 Go home Out of if-else 3) Enter age : 28 Age : 28 Coffee with me Go home Out of if-else Note:assuming every printf statement is having a new line
@iasaspirant1441
@iasaspirant1441 3 жыл бұрын
Yes broh I to got same same out
@prajwal7257
@prajwal7257 3 жыл бұрын
Ok I well assume
@priyanshuhurmade8626
@priyanshuhurmade8626 3 жыл бұрын
Bro not 30 its 32
@saineeraj1326
@saineeraj1326 2 жыл бұрын
Your answer is wrong bro There condition is greather than 25,and less than 30,it means it should be 26,27,28,29 If u Case-1 Enter age:25 Out of if-else Case-2 Enter age:32 Out of if-else
@dileepnagam
@dileepnagam 2 жыл бұрын
Correct
@tps8470
@tps8470 2 жыл бұрын
Thanks a lot Mam
@BiqSam2002
@BiqSam2002 8 ай бұрын
I was late for my sem_1 buh currently I'm doing fair....! thnkz mam...!🙏🙏🙏
@sourabhkale5211
@sourabhkale5211 Жыл бұрын
Home work Ans :- 1st Question - Age is 25 Our condition is Is ( Age > 25 && age < 30 ) Age is 25 means In Logical && = ( First False (0) && If False can't check second ) So Ans is 0 False it means If Block Not Executing. Control directly going to else block and , * printing Age 25. And then Printing remaing Code like * Go Home * out of the code. 2nd Question - Age is 32 Condition is (age >25 && age
@parinitaverma4109
@parinitaverma4109 Жыл бұрын
I'm having difficulties to run program If else not working it showing no such file or directory what to do help me
@sourabhkale5211
@sourabhkale5211 Жыл бұрын
@@parinitaverma4109 It happen because You Didn't choose Folder Properly That's Why Compiler giving this Error compilation time You can Do like. 1. Open Vs Code --> Create New Folder --> Create New File File name Is Whatever but Extension is Filename.c 2 . write Your If Statement Code Properly 3. Compile it Properly gcc Filename.c 4. Compiler convert .c file in .exe file Then you can run this by using .\ exefilename.exe 5 . if you Follow this step You will get result .
@parinitaverma4109
@parinitaverma4109 Жыл бұрын
@@sourabhkale5211 thank you so much it's working ☺
@sourabhkale5211
@sourabhkale5211 Жыл бұрын
@@parinitaverma4109 welcome..😊
@sudhakarreddy8836
@sudhakarreddy8836 Жыл бұрын
Corrrestuuu
@cosolution8641
@cosolution8641 3 жыл бұрын
Plz make video on how to score good in semester exam
@rgMusicCompany
@rgMusicCompany 2 жыл бұрын
1. Enter age - 25 Output will be - Go Home and Out of if-else 2. Enter age - 32 Output will be- Go Home and Out of if - else statements Am I right ? 👆👆❓❓
@bikevibes2824
@bikevibes2824 27 күн бұрын
// A number is Even or Odd // #include int main(){ int num; printf("Enter a number: "); scanf("%d",&num): if(num%2==0){ printf("Number is Even"); } else { printf("Number is Odd"); } return 0; }
@helpandsuppotsr1.034
@helpandsuppotsr1.034 2 жыл бұрын
Liked the video. Can we have a correct order to learn coding 👍
@syedalifathimaa9618
@syedalifathimaa9618 3 жыл бұрын
Even in this night time you are uploading videos , thanks for it
@abhayroy328
@abhayroy328 Жыл бұрын
Mam you sooo... Prety❤
@hadieudonne433
@hadieudonne433 3 жыл бұрын
Wow, thank you so for your hard working
@chirag6216
@chirag6216 2 жыл бұрын
in both the cases of 25 and 32, else statements and out of ifelse would be printed and for 26-29 : age,you can have coffee with out of if else would be printed.(if curly braces are present).and if not printed then go home will aslo be printed.
@jayarogan7100
@jayarogan7100 Жыл бұрын
Your explanation is amazing maam
@seenusunny981
@seenusunny981 2 жыл бұрын
Both the cases same output will be generated mam. i. e, gohome Outof if-else
@viaansen9785
@viaansen9785 3 жыл бұрын
scanf("%d",&age) // //address sign was missing in program.
@Aditya-Royal
@Aditya-Royal 5 ай бұрын
IMP point at 8:22
@jch1812
@jch1812 3 жыл бұрын
Mjhy c , c++, java aati h but here i come for only you.
@rrrttt4964
@rrrttt4964 2 жыл бұрын
Gr8 explained..💞 But Change the thumbnail of the vedio.. Main scroll kr jata hun. Pta Ni prta...sub Aik jese hain...🤧🤩
@sharmisthasinhakashyap4949
@sharmisthasinhakashyap4949 3 жыл бұрын
Waiting For more Videos specially array functions and stack queue
@princeyadav9268
@princeyadav9268 3 жыл бұрын
mam your coding is not excuted it show (segementation fault) because you are not using (&age in scanf funtion)
@movefree123
@movefree123 2 жыл бұрын
Mam can you explain nested if elses
@seggyamgopi3097
@seggyamgopi3097 2 ай бұрын
In this code there is a mistake. Scanf("%d", age) ; ❌ Scanf("%d", &age) ;✅ Try with this you will get correct output
@FataiAminat-iz2yc
@FataiAminat-iz2yc 2 ай бұрын
Thank you ma🥰
@rukayatmuhammed3670
@rukayatmuhammed3670 Жыл бұрын
Thank you Jenny
@satishprasadyadav
@satishprasadyadav Жыл бұрын
Thank you so much mam.
@18fatima15
@18fatima15 5 ай бұрын
10:52 when age=25, output: age=25 Go home Out of if-else when age=32, output: age=32 Go home Out of if-else
@chamaridesilva1668
@chamaridesilva1668 Жыл бұрын
very useful. thank you
@rukayatmuhammed3670
@rukayatmuhammed3670 Жыл бұрын
Thank you ma'am
@nitishraj5342
@nitishraj5342 3 жыл бұрын
thnks a lot mam . please also share the pdf notes 🙏🙏🙏
@sammiefazzie
@sammiefazzie Жыл бұрын
when i entered 25 and 32, the INT was printed after that It printed the same output "go home" and after the else statement, " out of if else " was also printed out,
@user-jp7cr1vj6c
@user-jp7cr1vj6c 8 ай бұрын
From Karnataka ❤
@UPHNaveenS-we6uh
@UPHNaveenS-we6uh 3 жыл бұрын
In scanf you didn't mention &. Will it show error during execution. Thank you for sharing your knowledge with us. Keep educating us mam.
@gouthamnayak8086
@gouthamnayak8086 3 жыл бұрын
yes because we have to give adress of variable
@tithighosh2169
@tithighosh2169 3 жыл бұрын
Ma'am please upload videos of command line argument in c. ❤️❤️
@Npanywayme
@Npanywayme 3 жыл бұрын
Love u and ur video
@SadhanaSharma
@SadhanaSharma 2 жыл бұрын
12:28 Enter age:25 age = 25 Go home.out of if-else Enter age:32 age=32 Go home. Out of if-else
@dipeshnaik3767
@dipeshnaik3767 2 жыл бұрын
There will be error because there is no & in scanf
@bcadiary6958
@bcadiary6958 3 жыл бұрын
Amazing
@sushanthchandan4263
@sushanthchandan4263 3 жыл бұрын
1. 25 Go home Out of if else 2. 32 Coffee with me
@apcreation....6510
@apcreation....6510 2 жыл бұрын
1) Enter age 25 age 25 Go home Out of else 2)Enter age 32 age 32 Go home Out of else 3) Enter age 28 age 27 Coffee with me Go home Out of else
@continnum_radhe-radhe
@continnum_radhe-radhe 2 жыл бұрын
🔥🔥🔥
@SakshiSingh-io6bu
@SakshiSingh-io6bu Ай бұрын
What are identifiers can u please tell me with example
@harshj2654
@harshj2654 2 жыл бұрын
Mam you did a mistake in scanf line you forgot to write adress symbol & ..... So it had been compile in an other way means it shows another age value while we enter age in between 25 to 30
@kelvipatel1220
@kelvipatel1220 9 ай бұрын
It won't take input in any case cause & is not used with scanf() function
@sayansaha5326
@sayansaha5326 2 жыл бұрын
Thanks mam
@dhanyashreebhat4564
@dhanyashreebhat4564 3 жыл бұрын
Mam u use two if condition in example program... if there is 2 if condition then it become nested if right??..
@saineeraj1326
@saineeraj1326 2 жыл бұрын
Ma'am is it correct?if u see this comment, respond on it There condition is greather than 25,and less than 30,it means it should be 26,27,28,29 If u Case-1 Enter age:25 Out of if-else Case-2 Enter age:32 Out of if-else
@samankumarasiri3145
@samankumarasiri3145 2 жыл бұрын
Enter the age: 32 age=32 Coffee with me Go home Out of if else
@samankumarasiri3145
@samankumarasiri3145 2 жыл бұрын
#include #include int main() { int age; printf("Enter age :"); scanf("%d",&age); if(age>25) { printf("age=%d ",age); printf("coffey with me "); } else printf("age=%d ",age); printf("Go home "); printf("End of if-else "); return 0; }
@uttej1390
@uttej1390 3 жыл бұрын
Lec starts at 2:22
@shohansikder6105
@shohansikder6105 2 жыл бұрын
Thank u😍
@alokmishra2804
@alokmishra2804 3 жыл бұрын
Splendid 👌 👌 👌
@macdaveedgolden7890
@macdaveedgolden7890 11 ай бұрын
For age 25 Age is: 25 Go home Out of if-else For age 32 Go home Out of if-else Thanks a lot ma’am The confidence of the programmer in me grows after each of your tutorials ❤
@deepakff7498
@deepakff7498 11 ай бұрын
i too got same answer...are you in 1st year???
@macdaveedgolden7890
@macdaveedgolden7890 11 ай бұрын
@@deepakff7498 yeah
@bellalmahtab8220
@bellalmahtab8220 3 жыл бұрын
Great Mam keep it up
@chaitralinaidu8019
@chaitralinaidu8019 2 жыл бұрын
very helpful videos for begnniers
@vasumeduri5103
@vasumeduri5103 Жыл бұрын
Mam at starting of the program in scan f you didn't write & symbol . You just wrote age it's & age
@honeyguptaji8026
@honeyguptaji8026 3 жыл бұрын
अगर else ब्लॉक के बाद printf wala part na likhe तो क्या मैं प्रोग्राम गलत हो जाएगा मेरा मतलब की printf ( "out of if else ") लिखना जरूरी है क्या हम डायरेक्ट एस ब्लॉक खत्म होने के बाद क्या getch(); लिख दे।
@Anandnayakyouth
@Anandnayakyouth 2 жыл бұрын
Very nice ring tone #niceringtonewaalabgm
@premraj1456
@premraj1456 3 жыл бұрын
Well explain mam
@isaac-victorshonowo1838
@isaac-victorshonowo1838 11 ай бұрын
Watched and Understood ❤ You didn't map your age in scanf to the age variable... i.e &age. Does it not matter here?
@SKMTutorialsHub
@SKMTutorialsHub 3 жыл бұрын
Good explanation 👍
@Lovingmine181
@Lovingmine181 2 жыл бұрын
Mam can u explain about identifying errors while writing the program and after executing the program .It is very hard to identifying the errors in mobile not only for me because somany engineering students has doesn't have their own laptops or system.Mam and also explain how can we learn coding by using the mobile
@kashishmaurya5198
@kashishmaurya5198 11 ай бұрын
Mam all control statement par practice program provide kar dijiye
@lalitharamachandra6659
@lalitharamachandra6659 8 ай бұрын
4:33 mam you had not mentioned (&) symbol in scanf( ) function
@gmramkumar9536
@gmramkumar9536 3 жыл бұрын
Mam one doubt.... My age is 18. Now... what will be your output?? Coffee?
@SurajMapariPrivate
@SurajMapariPrivate 3 жыл бұрын
Output for assignment>> --------------------------------------- For age 25: --------------------------------------- Enter age : 25 Age : 25 Go home End of if-else ---------------------------------------- For age 32: ---------------------------------------- Enter age : 32 Age : 32 Go home End of if-else
@hariprasadmaguluri9695
@hariprasadmaguluri9695 3 жыл бұрын
Good
@PrapthiBP
@PrapthiBP 3 ай бұрын
Mam in scanf & operator missing
@sabyasputnik_2004
@sabyasputnik_2004 Жыл бұрын
7:25 Dangling else error // else without previous if 8:24 always use curly braces for the if and else block Jaddi in IF-ELSE a if block containing more than one statement & we forgot to put curly braces to defined it region wewill get error bcoz there should be no other statem3nt between If statement and else statement Mane if saraaru else part arambha jadi ame IF-ELSE byabahara karuche majhi re kicchi jatara nahin So to avoid during use of IF-ELSE Put the else part immidiate after the if part
@ashwani8721
@ashwani8721 3 жыл бұрын
1st viewer...
@sanchay_khatwani
@sanchay_khatwani 2 жыл бұрын
Osm mam 😊
@parameswararaobyreddy7696
@parameswararaobyreddy7696 3 жыл бұрын
Madam please suggest me about the computer programming languages books for beginners
@helpandsuppotsr1.034
@helpandsuppotsr1.034 2 жыл бұрын
Started from 2:27
@uthprekshaunni7829
@uthprekshaunni7829 Жыл бұрын
There is no "&" in scanf before age. Is it okay?
@raghavendrarajupalagani1119
@raghavendrarajupalagani1119 Жыл бұрын
No we should mention
@user-ri4tq8wz5o
@user-ri4tq8wz5o 9 ай бұрын
Present mam
@GooodGagets
@GooodGagets Жыл бұрын
Mam you missed an & in the scanf function Edit: i missed to add the time 05:22
@abdulnasarachakzai2604
@abdulnasarachakzai2604 3 жыл бұрын
maam which time you will be uplode java lectuers
@741ibrahim2
@741ibrahim2 3 жыл бұрын
mam if age is 25 then else block statement is printed
@honeyguptaji8026
@honeyguptaji8026 3 жыл бұрын
If age is 25 then 👉age=25 Go home Out of if else If age is 32 then 👉age =32 Go home Out of if else
@riteshsawardekar2760
@riteshsawardekar2760 2 жыл бұрын
2:28 Start
C_29 Nested If in C | C Programming Tutorials
15:07
Jenny's Lectures CS IT
Рет қаралды 210 М.
C_27 If Statement in C | C Programming Tutorials
20:56
Jenny's Lectures CS IT
Рет қаралды 396 М.
АЗАРТНИК 4 |СЕЗОН 2 Серия
31:45
Inter Production
Рет қаралды 909 М.
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 35 МЛН
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 845 М.
Don't Write Comments
5:55
CodeAesthetic
Рет қаралды 797 М.
C_30 else if ladder in C | C Programming Tutorials
13:53
Jenny's Lectures CS IT
Рет қаралды 171 М.
C_43 Need of Nested Loops in C | Nested For loop in C
18:31
Jenny's Lectures CS IT
Рет қаралды 627 М.
This is the best way to learn C++ for free
0:40
Mehul - Codedamn
Рет қаралды 425 М.
C_25 Unformatted Input Functions in C | C Programming Tutorials
14:19
Jenny's Lectures CS IT
Рет қаралды 230 М.
Flow of Program - Flowcharts & Pseudocode
27:02
Kunal Kushwaha
Рет қаралды 602 М.