C_29 Nested If in C | C Programming Tutorials

Поділитися
Вставка
  • Опубліковано 10 січ 2021
  • In this video, I have discussed the nested if control statement in C | Syntax, Working, Flowchart, Examples, Program
    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/profile/Jayanti...
    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 #nestedif

КОМЕНТАРІ • 290

  • @chinweijeomaijy
    @chinweijeomaijy Рік тому +24

    The help you have rendered with these videos knows no bounds. Thank you so much, Tutor Jenny

  • @justicejuwa7199
    @justicejuwa7199 Рік тому +2

    Thank you so much Jenny, you just simplify my cs50 course. This is so helpful and i love your traditional way of teaching.

  • @ComputerScienceSimplified
    @ComputerScienceSimplified 3 роки тому +12

    Awesome video, keep up the great work! :)

  • @akshaychavan3597
    @akshaychavan3597 3 роки тому +41

    first time in 5 years, I am getting most of my concepts clear. this series is awesome.

  • @athletesone01
    @athletesone01 3 роки тому +4

    U usually gives explanation with ur heart core thanks mam

  • @bommaniraveendrababu9257
    @bommaniraveendrababu9257 3 роки тому +8

    I never learnt any thing from my lectures every thing learnt from your videos thank you mam

  • @reena3399
    @reena3399 3 роки тому +11

    Mam I didn't even know what is c
    But mam with the support of u I learnt every basics things about programs

  • @AswanthSKrishna
    @AswanthSKrishna Рік тому

    Mam really you are awesome. I was struggling to get idea and you explained very simply 😊

  • @shaivistuti7718
    @shaivistuti7718 Рік тому +1

    Thanks a lot, mam!!!!! I am a 10th grader and I have IT classes, in school and we were learning c programming I missed a class
    in which nested if statement was taught...I forgot to ask my teacher and tomorrow is my exam!!!! Your explanation worked wonders for me...Thanks a ton!!!!

  • @ankushmondal1326
    @ankushmondal1326 2 роки тому +1

    Mam u are genius I does not understand the matter of nested if statement. Then I watch your video. Even I confidently say that I understand the matter. Thank you so mach mam

  • @rohitsunariya8469
    @rohitsunariya8469 3 роки тому +187

    #include
    int main(){
    int a,b,c;
    printf("Enter the three numbers:");
    scanf("%d %d %d",&a,&b,&c);
    if(a>b)
    {
    if(a>c)
    printf("%d is largest",a);
    else
    printf("%d is largest",c);
    }
    else
    {
    if(b>c)
    printf("%d is largest",b);
    else
    printf("%d is largest",c);
    }
    return 0;
    }

    • @EasyLearnAmanchauhan
      @EasyLearnAmanchauhan 2 роки тому +2

      👍

    • @abhaysharma3270
      @abhaysharma3270 2 роки тому +2

      perfact

    • @fantatrawally4034
      @fantatrawally4034 2 роки тому +2

      Very good

    • @babluranga1421
      @babluranga1421 2 роки тому +6

      Text book answer

    • @clashbegins2063
      @clashbegins2063 2 роки тому +42

      @@babluranga1421 bro its too lengthy see use the logical and
      #include
      int main()
      {
      int a,b,c;
      printf("enter three numbers");
      scanf("%d %d %d",&a,&b,&c);
      if (a>b && a>c)
      printf("%d is the greatest number",a);
      if (b>c && b>a)
      printf("%d is the greatest number",b);
      if (c>b && c>a)
      printf("%d is the greatest number",c);

      }

  • @Shubham-wy2bo
    @Shubham-wy2bo 3 роки тому +1

    Your teaching technique is so great Mam.

  • @nagendrabommireddi8437
    @nagendrabommireddi8437 3 роки тому +1

    Thank u mam.these videos r very helpful ...

  • @arifpatan7180
    @arifpatan7180 2 роки тому +1

    Mam you are Explanation is Good on c-programming i am easily understand that concept Nested if Thank you mam you are teach very well.

  • @HollyBollyWeb
    @HollyBollyWeb Рік тому +1

    You are very experienced teacher so good teaching thank you ma'am.

  • @vce-rachanaodhela4455
    @vce-rachanaodhela4455 2 роки тому +1

    Thank you Mam for ur awesome teaching

  • @vrushabhdabhi5754
    @vrushabhdabhi5754 3 роки тому +6

    Hello ma'am
    this is quite useful series
    your videos are the best i have never seen before like this type of explanation of each topic
    And 1 question how many sweaters and jersies do you have ??

  • @prashanthmudunuri6451
    @prashanthmudunuri6451 Рік тому

    really u are good at programing i seen all vedios of u it is very use full to me

  • @ashokdhavhan6496
    @ashokdhavhan6496 Рік тому

    Thank you 😊💕 mam so much this solved my doubts you explained so good

  • @sherazhussain2937
    @sherazhussain2937 2 роки тому +1

    So nice explanation ❤️

  • @agboemmanuella8302
    @agboemmanuella8302 Рік тому +1

    the best tutor in the world, God bless u dear Jenny

  • @aniketmane2887
    @aniketmane2887 3 роки тому +1

    Superb explanation 👍

  • @karishmauma1196
    @karishmauma1196 2 роки тому +1

    thankyou soo much mam !! your the best

  • @tayyabbashir3936
    @tayyabbashir3936 Рік тому +2

    Aoa Your Teaching Method is so good 👍

  • @eashwarkancharla2935
    @eashwarkancharla2935 2 роки тому

    Thanks for clearing my doubt maam

  • @venkataramsai3226
    @venkataramsai3226 3 роки тому +1

    Nice explanation ❤️❤️❤️👍👍👍

  • @athletesone01
    @athletesone01 3 роки тому

    Thnku so much 👍🏼👍🏼

  • @shivajikadam6740
    @shivajikadam6740 2 роки тому

    Mam you are incredible👍😍

  • @manimatoranimator2819
    @manimatoranimator2819 3 роки тому

    Hi Teacher, is it possible to add conditions to inner if statements that are not related with each other..
    Like for the example you as you mentioned in the example if I want to check grapes as well is it possible to add that statement..

  • @sachincs9338
    @sachincs9338 3 роки тому +1

    can we use else if to write a program to find greatest of 3 numbers

  • @ajinkyaabegaonkar7628
    @ajinkyaabegaonkar7628 4 місяці тому

    Thank you ma'am for teaching in easy way

  • @fitnesscrackchannel1911
    @fitnesscrackchannel1911 4 місяці тому

    Thank u mam for thinking much about us

  • @patricktafeu3762
    @patricktafeu3762 4 місяці тому

    Hihgly better explained more my Lecturer. thanks a lot Madam!

  • @user-il9dm1gb9v
    @user-il9dm1gb9v 9 місяців тому

    Your lectures are very helpful for us

  • @sunnyma2750
    @sunnyma2750 Рік тому +1

    Wow! Mam,you are the best**⭐

  • @reena3399
    @reena3399 3 роки тому +1

    It's amazing mam

  • @durgfestivalvibes
    @durgfestivalvibes 3 роки тому +1

    Thankyou thankyou very much!!!$$

  • @reena3399
    @reena3399 3 роки тому +1

    Thank you mam so much❤️❤️❤️❤️❤️😘😘😘

  • @tps8470
    @tps8470 2 роки тому +1

    Thanks a Lot Mam

  • @sanskarkhandelwal
    @sanskarkhandelwal Рік тому

    Just learning c thx mam

  • @meeranfais7996
    @meeranfais7996 2 роки тому +1

    That was great really to clear out my all confusions 😃. I prefer Everyone should learn from your channel. Lots of love from Balochistan❤. Thank you so much mam. God bless u ever. ❤❤

  • @graphicslearn8568
    @graphicslearn8568 3 роки тому +7

    its for beginner what about advance Maam
    your teaching method is supper say bahot uper.

  • @isaac-victorshonowo1838
    @isaac-victorshonowo1838 10 місяців тому

    Watched and Understood ❤

  • @kishoyannason5958
    @kishoyannason5958 3 роки тому

    Thanks madam hopes to join India soon

  • @Adityaverma-mr5cs
    @Adityaverma-mr5cs Рік тому

    Amazing ❤❤

  • @premraj1456
    @premraj1456 3 роки тому

    Great work mam

  • @abhishekgiri7925
    @abhishekgiri7925 3 роки тому

    Woww nice explanation

  • @cyanical_storm908
    @cyanical_storm908 2 роки тому

    Excellent 😊

  • @anju7334
    @anju7334 2 роки тому +1

    Thankyou mam ❤️❤️

  • @aniketkumar3126
    @aniketkumar3126 3 роки тому

    Great effort maaaaaammmm

  • @pawankumarpal1115
    @pawankumarpal1115 3 роки тому +1

    Great..

  • @meghasinha1706
    @meghasinha1706 3 роки тому

    Thanks mam

  • @BiqSam2002
    @BiqSam2002 6 місяців тому

    Me after lecture if i have doubts 💨🏃‍♂🏃‍♂ to jenny's lectures
    anyways thanks so much🙏🙏🙏

  • @petereziagor4604
    @petereziagor4604 Рік тому +1

    Happy that I did the assignment in two ways, if-else statement and with ternary operators, feels good.

  • @janakiisajeev
    @janakiisajeev 3 роки тому +1

    Your videos are awesome 🥂🌈

  • @rajeshe431
    @rajeshe431 2 роки тому +3

    Explination of concepts are good
    also
    make the videos on JAVA programming
    untill waiting for that ...,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

  • @sayirikavya5873
    @sayirikavya5873 2 роки тому

    Madam can we use inner if condition in else condition of nested if

  • @uzrakhanum7596
    @uzrakhanum7596 2 роки тому +1

    Explain the condition 2 what if it is false and if there is any local variable how is the control flow

  • @karthikreddygdp1380
    @karthikreddygdp1380 2 роки тому

    Thank u so much maam

  • @amairapandey8047
    @amairapandey8047 Рік тому +3

    Ma'am thank you so much for such an amazing c language lectures..
    You helped me a lot...😃
    Thank you so much maam..❤
    Maam plzz c++ ki playlist complete kr dejiye..
    We are waiting...

  • @maheshkhare8776
    @maheshkhare8776 2 роки тому

    Your teaching method is very nice.if once set in mind your lectures it Can never forget.
    And one more thing
    ते fast writing चा आवाज खूप भारी दिलाय.😅😅

  • @indukunthipuram7218
    @indukunthipuram7218 7 місяців тому +1

    If we write many conditions using logical and in if statement then it is not more called nested if right mam..?

  • @AMANSINGH-om1dc
    @AMANSINGH-om1dc 3 роки тому

    thanks

  • @suseelamutina2471
    @suseelamutina2471 5 місяців тому +1

    Mam, when you have used same if for both conditions if the age condition is false i.e less than 50 then the salary will be incremented 5000 but it should be only 3000 know.

  • @sruthibathula131
    @sruthibathula131 3 роки тому +1

    I got the maximum among three numbers mam

  • @ITCE2018
    @ITCE2018 2 роки тому

    Excellent

  • @Phupsang
    @Phupsang 4 місяці тому

    Thankyou aunty aab me pass hojaunga 😮

  • @upscallmydream
    @upscallmydream 3 роки тому +1

    Thanks from kashmir

  • @dipanshusaini8832
    @dipanshusaini8832 3 роки тому

    Logical and one more condition

  • @meenaghezalamini6253
    @meenaghezalamini6253 2 місяці тому

    when I am using the program of salary and age with the and logical operator it if giving me error what is the problem?

  • @ayushisoni4936
    @ayushisoni4936 Рік тому

    Mam I had solved the assignment given by you to find maximum of two numbers

  • @Mizi_Love_1918
    @Mizi_Love_1918 3 роки тому +1

    example was best

  • @aishwaryasagade4466
    @aishwaryasagade4466 4 місяці тому

    Thankkkkkk youuuuu mammmmm😭❤️🥹

  • @ajinkyaabegaonkar8806
    @ajinkyaabegaonkar8806 6 місяців тому

    Maximum no program executed.
    Thank ma'am for teaching this.

  • @tonymusyoka6572
    @tonymusyoka6572 10 місяців тому

    You are an Angel sent from heaven

  • @continnum_radhe-radhe
    @continnum_radhe-radhe 2 роки тому +1

    🔥🔥🔥

  • @ujjwalsingh4414
    @ujjwalsingh4414 2 роки тому +6

    Mam in these if we write two programs with logical "and" ooerator then if anyone is false then it directly goes to outer else ( don't go on inner else ) and but if we write both conditions seperately in two if manner then only we get inner else statement when inner if statement became false . Check this on 15:04 in your video you say wrong I think please make me correct if I wrong otherwise the correct video ❤️

    • @vanshsingh4931
      @vanshsingh4931 8 місяців тому

      Yes I also got the same doubt.
      Have you got the solution to it?

  • @ananthu4141
    @ananthu4141 11 місяців тому +2

    12:20 how can we consider the second else case here.... Bcz an else can't be there without any if... Since there is only one if how we treat the second else statements there..?

  • @user-jb4yt2yw6p
    @user-jb4yt2yw6p 11 місяців тому

    Plss mam i'm not seeing those increment salary 10000... And when i try to run my computer it is giving me error i on't know what to do

  • @ANKITKUMAR-jg1lb
    @ANKITKUMAR-jg1lb 2 роки тому

    top class

  • @tusharsrivastava3498
    @tusharsrivastava3498 9 місяців тому

    If. We will do it on 16 bit compiler the output of program will be unpredictable as we are using salary as int.

  • @kumarkalyan5557
    @kumarkalyan5557 2 роки тому +1

    👍👍

  • @097-madhu3
    @097-madhu3 2 роки тому

    Osm mam

  • @sihi__
    @sihi__ 2 роки тому +7

    Ma'am please start classes on java programming language too 💙

  • @aditya_17181
    @aditya_17181 2 роки тому +7

    SuperMarket example helps me to understand 🤗🤗

  • @snazakatkhan5972
    @snazakatkhan5972 3 роки тому

    leaps are in motion ocean to ocean to ocean

  • @manpreetkaur-dk5mm
    @manpreetkaur-dk5mm 3 роки тому +2

    I HAVE DONE THIS PROGRAM WITH ONE STATEMENT BY USING LOGICAL OPERATOR &&.

  • @shivajikadam6740
    @shivajikadam6740 2 роки тому

    I want to many videos of that programs

  • @allahsaw1669
    @allahsaw1669 5 місяців тому +1

    ❤ meet in jannah mam

  • @Helly04
    @Helly04 9 місяців тому +1

    3 numbers,find maximum among 3 numbers using nested if

  • @kumaravelg3813
    @kumaravelg3813 2 роки тому

    Mam,Why you have written getch mam

  • @naveen1001
    @naveen1001 Рік тому +1

    //Write a C program to find maximum between three numbers.
    #include
    int main()
    {
    int a,b,c;
    a=b=c=0;
    printf("Enter 1st number: ");
    scanf("%d",&a);
    printf("Enter 2nd number: ");
    scanf("%d",&b);
    printf("Enter 3rd number: ");
    scanf("%d",&c);
    if(a>b)
    {
    if(a>c)
    {
    printf("%d is greater",a);
    }
    else
    {
    printf("%d is greater",c);
    }
    }

    else

    {
    if(b>c)
    {
    printf("%d is greater",b);
    }
    else
    {
    printf("%d is greater",c);
    }
    }
    }

    Thank you mam :) for your Efforts....
    Love from Khammam..

  • @Kishore_kumar7735
    @Kishore_kumar7735 2 роки тому

    Mam..your look ..your voice all are similar with Neha mam.....vedantu maths teacher ♥️

  • @sanjanapanwar3844
    @sanjanapanwar3844 3 роки тому +3

    ma'am in single if we can' t use double else,it will give error

  • @musicallyinclined5550
    @musicallyinclined5550 2 роки тому

    challenge accepted
    I will try my best

  • @hemanthsai7067
    @hemanthsai7067 3 роки тому +2

    1st cmt 😍

  • @dmtiwari7097
    @dmtiwari7097 Рік тому

    I
    will solve it

  • @ParamitaDey-bi1mg
    @ParamitaDey-bi1mg 2 роки тому +2

    I cannot understand how the last else will be executed..... Because by using and operator we are checking both condition age and salary ... So suppose if the age of a person is greater than 50 and salary more than 60000 then if condition is not satisfied then 1st else loop will be executed. (My question is why the 2nd else loop will not be executed) Now my 2nd question is If the age of the person is less than 50 then how compiler will understand which else statement should be executed 1st else or 2nd else?.... Pls ans.

    • @petereziagor4604
      @petereziagor4604 Рік тому

      I need answer as well

    • @Surya-uu1vy
      @Surya-uu1vy Рік тому

      We can use logical OR instead of logical AND

    • @chinweokwugiftchiedozie1587
      @chinweokwugiftchiedozie1587 Рік тому +1

      For your first question: In logical and, once the first condition is false then the second will be ignored whether it is true or not. Since according to the statement on the first else block the salary had to be less than 60, 000 in order to execute and the logical and ignores that condition since the first is false, that first else will not be executed. However, if the first condition were true, then it would proceed to the next condition, and even though the second was false, the first else block will then be executed.
      For your second question: it depends on how the structure of your statement is, that's why you need to pay attention to your structure as regards the use of curly braces to keep the conditions in check. Without them, all the statements after the first block for the first if condition statement may be printed on your standard output whether or not the conditions were true. I think you should watch her previous tutorials on if statements.
      Thank you

  • @aritradas5706
    @aritradas5706 3 роки тому

    solved it maam

  • @Abhishekog74
    @Abhishekog74 Рік тому

    I need notes