C_27 If Statement in C | C Programming Tutorials

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 444

  • @AliHamza-g8j8k
    @AliHamza-g8j8k 11 місяців тому +22

    28 age: All statements will execute
    16 age: Last three statements will execute
    14 age: You can go coffee with me and its time to go home will execute

  • @siddiqaahmed2564
    @siddiqaahmed2564 Рік тому +13

    your teaching style is so outstanding keep it up.Most of the students demanding a great teacher of computer and you are a best

  • @18fatima15
    @18fatima15 8 місяців тому +3

    20:10 when age=28, output:
    Your age is 28.
    It's time to go home
    when age =16, output:
    Your age is 16
    It's time to go home
    when age=14
    It's time to go home

  • @manishnegi6927
    @manishnegi6927 2 роки тому +60

    i need a buddy who is also watching the playlist now !!. Amazing work mam you are blessed with your teaching skills your hardwork could be clearly seen while teaching that you have done as a student

  • @francisa.k.mensahjr.7885
    @francisa.k.mensahjr.7885 Рік тому +19

    watching the playlist from Ghana, West Africa . Thanks for the dedication.

  • @asu253941simi
    @asu253941simi 4 місяці тому +2

    I am wathing from Portugal.. I tried CS50, and could not get as a beginner but when i got your lectures its like complete C learning Thanks again and more power

  • @sayidahmed297
    @sayidahmed297 2 роки тому +12

    thanks very much. definitely, you helped me with this course c programming language.

  • @SadhanaSharma
    @SadhanaSharma 3 роки тому +16

    21:43
    Enter age :28
    Your age is 28 .you can go coffee with me.
    Your age is 28. It's time to go home
    Enter age :16
    You can go coffee with me
    Your age is 16. it's time to go home.
    Enter age : 14
    You can go coffee with me.
    It's time to go home.

  • @anandsinha2289
    @anandsinha2289 2 роки тому +100

    in the first input age =28
    your age is 28
    you can go coffee with me
    your age is 28
    it's time to go home
    for input Age=16
    you can go coffee with me
    your age is 16
    it's time to go home
    for input Age =14
    you can go coffee with me
    it's time to go home

    • @devSackey
      @devSackey Рік тому +6

      correct

    • @Amruthagaddi-d4i
      @Amruthagaddi-d4i Рік тому +13

      You can go coeffe with me will not excited for age 16&14 because (1620)

    • @mayukhsen6910
      @mayukhsen6910 Рік тому +7

      @@Amruthagaddi-d4i you can go to coffee with me will get printed because there are no curly braces present,,so if will control only single statement,the one after if

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

      Superb the same answer is in my mind..😊

    • @Sindhuuu99
      @Sindhuuu99 Рік тому +5

      ​@@mayukhsen6910in the case of 16 & 14 you can go coffee with me is not printed

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

    21:42
    /*for 28
    your age is 28
    you can go coffee with me
    your age is 28
    its time ti go home
    for 16
    you can go coffee with me
    your age is 16
    Its time to go home
    for 14
    you can go coffee with me
    Its time to go home*/

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

      Right brdr✔️✔️

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

      Yeah i too got the same op but i have a dbt is this crt???

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

      Y because if oru age greater than 20means it should show one statement right why its showing all the statement

    • @ShyamSundar-xd4lb
      @ShyamSundar-xd4lb 2 роки тому

      @@jeyaharinivj6378 you can go coffee with me and its time to go home donot come under if block because of no curly braces. Hope u got it.

  • @Divyesh_db
    @Divyesh_db 3 роки тому +37

    Assingment answers :
    (i) for age = 28
    1st and 2nd both if blocks would be printed
    (ii) for age = 16
    2nd if block will be printed
    (iii) for age = 14
    no if blocks would be printed, only last sentence would be printed.

    • @neeln7_147
      @neeln7_147 2 роки тому +20

      Wrong...see there is no curly brackets{}
      ... So in (i.) All statements will be executed (ii.)1st statements will not executed, but remaining 3 will be executed (iii.)1st and 3rd statements will not be executed but remaining 2nd and 4th statements will be executed

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

      @@neeln7_147 curly braces are used only to print for a particular if statement all other conditions and statements.

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

      @@neeln7_147 haa.. true

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

      @@neeln7_147 will u plz menstion the statements in shortcut

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

      @@silaganasneha9719 i have already written it in short, still if you want then tell me i would mention the exact output 😅

  • @MVREducation
    @MVREducation 3 роки тому +16

    Starts at 2:49

  • @madhumalipremarathna3038
    @madhumalipremarathna3038 3 роки тому +10

    16:55
    when age is 20 the if statement will not be executed.
    As there are no {} for if block the output will be :
    You can go for coffee with me
    Its time to go home
    21:40
    When age is 28 :
    Enter age = 28
    Your age is 28
    You can go for coffee with me
    Your age is 28
    Its time to go home
    When age is 16 :
    Enter age = 16
    You can go for coffee with me
    Your age is 16
    Its time to go home
    When age is 14 :
    You can go for coffee with me
    Its time to go home

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

      Ur wrong
      When age is 16:
      Enter age = 16
      Its time to go home
      Same applies for when age is 14

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

      @@krishnapriya3872 NO, it's correct because in first IF statement { } are not mentioned

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

      Yes it’s correct

  • @Abhitherock-gv6cg
    @Abhitherock-gv6cg 9 місяців тому +1

    hii mam this is a abhishek sahu
    one of your student
    mam i am very happy and delight to study with your channel
    thank you mam for this unpaid video

  • @hadieudonne433
    @hadieudonne433 3 роки тому +46

    Wow, thank you so Madam for adding another one!!!!!

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

      U lucky boy getted a like from jeeny

  • @SpritualWander
    @SpritualWander 7 місяців тому +2

    So beautiful so elegant just teaching woww wow ,, when you look towards camera it feels like you are teaching me only 😂

  • @derry5680
    @derry5680 2 роки тому +17

    Great video with good teaching style. I have watched lots of tutorials videos, non was as good as yours.

  • @sakshibhore470
    @sakshibhore470 27 днів тому +1

    Your way of teaching is awesome ❤

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

    Finally!!!!.....the video i wanted so badly !!!!

  • @srikara4198
    @srikara4198 2 роки тому +20

    You and your explanation is so beautiful mam🌟

  • @pratikmarathe1118
    @pratikmarathe1118 3 роки тому +14

    All doubts clear mam I am engineering student mam
    Thank you 🙏

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

      Are you a computer engineering student?

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

      @@priyankapaul7077 no i am Mechanical student

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

      @@pratikmarathe1118 ohh, do you have codings in mechanic engineerings?🤔

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

      @@priyankapaul7077 no its just for knowledge about coding

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

      @@pratikmarathe1118 Making knowledge is a good habit..👍🏼😁

  • @nightyesterday
    @nightyesterday 2 роки тому +5

    When entered age = 25, it gives error
    @21:44, age=28 prints all 4 lines | age=16, prints last 2 lines | age=14, prints nothing.

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

    Mam You teach so clearly and we all get understood.
    Also u looks cute and cool.
    i impressed from your eyes.

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

    Very nice mam . I am impressed with ur conduct .

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

    I need more program on if, is very helpful

  • @venugopalala
    @venugopalala 6 місяців тому +1

    1)For age : 28
    Output:
    Your age is : 28
    You can go coffee with me
    It's time to go home
    2)For age :16
    Output:
    Your age is 16
    It's time to go home
    3))For age :14
    Output:
    Your age is 16
    It's time to go home

  • @manvendra91102
    @manvendra91102 3 роки тому +10

    Mam can you please upload Graphs in data structure please make a video on this topic . thanks you so much mam best explained by you .

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

    your an awesome teacher!!

  • @ArmanKhan-lr8sn
    @ArmanKhan-lr8sn 2 роки тому +2

    I am little slow in English . But explanation of your mam is just awesome.

  • @Arya_ayami
    @Arya_ayami 11 місяців тому +1

    for age 20 : both blockes with be printed
    for age 16 :in first block only (u can go cooffe ... ) will bre printed because we have logical && and 16 >20 so first conditions is worng but second statment will be excuted becuase we have no curly bracets and both statments in second block will be printed
    for age 14 : second statment in block 1 and second statment in block 2

  • @beekei_patel
    @beekei_patel 3 роки тому +15

    Condition is for equals to 20 or less than 20 .these numbers would be for true condition 1 ,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

  • @jayavardhanchelluru119
    @jayavardhanchelluru119 Місяць тому

    Very good!! Even you're explaining the general mistakes that a student do'es🎉

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

    Good teaching mam easily understandable

  • @uttej1390
    @uttej1390 3 роки тому +10

    Lec starts at 2:50

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

    Very well explained video ma'am

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

    Thanks for teaching c programming for free of cost❤

  • @kishormaknikar388
    @kishormaknikar388 2 роки тому +4

    Great work done

  • @tithighosh2169
    @tithighosh2169 3 роки тому +10

    Ma'am please upload videos of command line argument in c. ❤️❤️

  • @Aditya-Royal
    @Aditya-Royal 7 місяців тому +1

    IMP point at 13:06

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

    Mam you are so best teacher in c programming

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

    Mam thanks it's helpful for Cdac exam

  • @durgalankipalli2541
    @durgalankipalli2541 2 роки тому +4

    1. Without curly braces, output will be
    You can go coffee with me
    Its time to go home
    2. If age is 28:
    Your age is 28
    You can go coffee with me
    Its time to go home
    If age is 16:
    Your age is 16
    Its time to go home
    If age is 14:
    Its time to go home

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

      Output Without curly braces
      You can go coffee with me
      It's time to go home
      //It would not print your age is=x for numbers less or equal to 20 as it's part of if statement. Only the last two statements will be executed for numbers less than 20

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

    Thank you soo much mam...Love from Pakistan🇵🇰🇵🇰🇵🇰❤💞❤💞

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

    Nice teaching Mam
    Thanks a lot Mam

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

    Nice mam your teaching style 2 much differ.. 👍👍

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

    Your voice is super and excellent teaching ❤🎉

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

    Thanks You Mam for teaching us mam, can you make videoon java and c++..

  • @suga3202
    @suga3202 2 роки тому +18

    Your lectures are so good ✨

  • @honey-vg2vk
    @honey-vg2vk 2 роки тому +2

    For 28
    Output: your age is:28 you can go coffee with me
    Your age is 28 Its time to go home
    For 16
    Your age is 16 Its time to go home
    For 14

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

    Hayeee madam kyy muskann haiii 😘😘🥰🥰

  • @bcadiary1201
    @bcadiary1201 3 роки тому +5

    Hlo Mam I m student of BCA from ranchi and ur classes are really helpful thanku mam u hv became my crush 💞

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

    19:54
    IF AGE IS: 28
    YOUR AGE IS: 28
    YOU CAN GO COFFEE WITH ME
    YOUR AGE IS: 28
    YOU CAN GO HOME
    IF AGE IS: 16
    YOU CAN GO COFFEE WITH ME
    YOUR AGE IS: 16
    YOU CAN GO HOME
    IF AGE IS: 14
    YOU CAN GO COFFEE WITH ME
    YOU CAN GO HOME

  • @techblaze516
    @techblaze516 2 роки тому +9

    14 print nothing and no error.
    16 prints the last if code block.
    But typing in 28 executes the first as well as second if block statement.

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

      May be it will print(you can go home)

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

      wrong run it on compiler then u will see ur mistake...

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

      @@rachitparashar1243bhai oehla tu run krle techblaze sahi bol raha ha

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

    if age is above 20, then all the four statements will be printed
    if age is above 15, then three statements: you can go coffee with me,age and its time to go home will be printed
    if age is 14, then both the age statements will no be printed and except the other two statements :
    you can go coffee with me and its time to go home will be printed.
    Means only kids under 15 will be entairtained and will enjoy the most.

  • @isaac-victorshonowo1838
    @isaac-victorshonowo1838 Рік тому +2

    Watched and Understood ❤
    I've started writing if statement codes... so cool. I even started using else already 🤣

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

    Thank❤ you so much 😊 mam. For explain

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

    Nice explanation teacher
    Love you

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

    You are the best one ❤️❤️❤️

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

    Thank u mam for giving great literature
    I can understand very easy & u looking beautiful mam

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

    Your lecture is wonderful mam , iam fan of u❤

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

    Explain What is the control flow when there is switch case in nested if statements

  • @SurajMapariPrivate
    @SurajMapariPrivate 3 роки тому +17

    Output for age 28 >>
    Enter age : 28
    Your age : 28
    Yes you can go coffee with me
    Your age is 28
    It's time to go home
    Output for age 16 >>
    Enter age : 16
    Your age : 16
    It's a time to go home
    Output for age 14>>
    Enter age : 14
    (Basically program ends here)

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

      enter age: 14
      I think it gives output -
      You can go coffee with me
      Its a time to go home
      Because { } are not mentioned in two IF statements

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

      @@rajIntrovert4150 sir I not getting your words can you please tell how this printed

    • @ShyamSundar-xd4lb
      @ShyamSundar-xd4lb 2 роки тому

      @@crickyfire5621 should i tell u or u came to know by now?

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

    i like the style you use in your lectures

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

    I was waiting for this only mam.
    Thankyou

  • @unlimitedGK-om8bs
    @unlimitedGK-om8bs 3 роки тому +4

    thanks mam.... spectacular class... just subscribd your chanel 😎😊☺️

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

    MADAM SIR MADAM ANTHE👌NICE

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

    15:06 mam apko return 0; likhna tha if block ke second statement ke baad
    That would make more sense😁

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

    int main{
    int age;
    printf("enter age");
    scanf("%d",&age);
    if(age>20)
    printf("age is =%d
    ",age);
    printf("you can go coffe with me");
    printf("its time to go");
    return 0;
    }
    output
    enter age 20
    you can go coffe with me its time to go

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

    Please Upload video on lecture of Defined Functions

  • @sauravewankhad1884
    @sauravewankhad1884 3 місяці тому

    age 21: all the execute
    age 20 without brackets: last two execute
    age 13 with brackets: last one execute

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

    Great detailed video 😊😊👍👍

  • @SanjayKatta-u4x
    @SanjayKatta-u4x 2 місяці тому

    Nice explanation madam
    thankyou so much madam

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

    Video start from 2:50

  • @shinyrao2786
    @shinyrao2786 3 роки тому +16

    Case 1
    For age 28:
    Output:
    Your age is 28
    You can come to coffe with me
    You age is 28
    You can go home.
    Case 2
    For age=14
    Output:
    You can come to coffe with me
    You can go home.
    Case 3
    For age:16
    Output:
    You can come to coffee with me
    Your age is 16
    You can go home....

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

      Correct broh I too got same output while solving

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

      ​@@iasaspirant1441 can u show me how to put a break in if condition and for loop in c is there any way

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

      Sahi hai bhai

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

      Checkout c conditional statements on our channel also

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

    If no brace and you enter above 20, it will print the 'ag'e and the 'coffee with me' and the 'time to go home'
    if no brace and you enter below 20, it will print only 'coffee with me' and the 'time to go home'

  • @16himanshubaliyan14
    @16himanshubaliyan14 2 роки тому

    Mam, definitely age is greater than 20 now let's go coffee😍

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

    18:24 sure ma'am 😂

  • @vinitpandey5242
    @vinitpandey5242 3 роки тому +5

    Well explained ma'am, thanks🙏

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

    You are an awesome teacher mam😍

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

    if age is 28-
    enter age: 28
    your age is 28
    you can go coffee with me
    your age is 28
    it's time to go home
    if age is 16-
    enter age: 16
    you can go coffee with me
    your age is 16
    it's time to go home
    if age is 14-
    enter age: 14
    you can go coffee with me
    it's time to go home

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

    without { } also i can able to run the program.....wowwwwwww ...

  • @Laxman-rx7cz
    @Laxman-rx7cz 6 місяців тому

    U are teaching well mam

  • @RishiVaish-ym1nr
    @RishiVaish-ym1nr 2 місяці тому

    Thank you so ma'am 😁🌟

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

    thankx u maam for such gud content

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

    Very good explanation mam

  • @padmapranathi8426
    @padmapranathi8426 Місяць тому

    void main()
    {
    int age;
    printf("enter age") ;
    scanf("%d", &age) ;
    if(! age)
    {
    printf ("You can go") ;
    }
    printf("you can come to office") ;
    getch() ;
    Output:
    enter age 0
    You can goyou can come to office

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

    Nice mam

  • @askme.everything8255
    @askme.everything8255 2 роки тому

    I like (love) you mam and your teching also

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

    18:05 to 18:15 to 18:18

  • @SahilAnsari-zt4zn
    @SahilAnsari-zt4zn 2 роки тому +12

    input-28
    output-
    Enter your age:28
    Your age is:28
    You can go coffee with me
    Your age is:28
    Its time to go home
    input-16
    output-
    Enter your age:16
    You can go coffee with me
    Your age is:16
    Its time to go home
    input-14
    output-
    Enter your age:14
    You can go coffee with me
    Its time to go home

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

      its wrong

    • @Hari-iz4gi
      @Hari-iz4gi 2 роки тому

      ​@@revanthkumar5119 why ?

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

      input 16 there would print
      " your age is 16
      it's time to go home"
      then input as 14
      " It's time to go home"

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

      @@sandman9999 for 14 it would be you can go coffee with me and then it's time to go home

  • @deepnarayan123
    @deepnarayan123 3 роки тому +10

    "It's time to go home"

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

    Love you mam ❤️❤️

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

    wow mam you are the best. Thank you very

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

    Excellent mam.i love you Jenny mamm 😘

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

    Thanks mam ☺️

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

    16:57 you can go coffee with me
    Its time to go home .Both will be printed if we don't use { }.

  • @Super-drawing-z7r
    @Super-drawing-z7r 2 роки тому

    Input:28
    Output: your age is 28
    You can go coffe with me
    Input:16
    Output:your age is 16
    Go home
    Input : 14
    No output

  • @s-facts9459
    @s-facts9459 2 роки тому

    16:53-output
    ok we can go to coffee
    Your child go to home

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

    Crystal clear

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

    Beautiful