for and while Loops

Поділитися
Вставка
  • Опубліковано 22 лип 2024
  • C Programming & Data Structures: for and while Loops in C programming.
    Topics discussed:
    1) Importance of loops.
    2) The syntax of While loop.
    3) Working of While loop.
    4) Example of While loop.
    5) The syntax of For loop.
    6) Working of For loop.
    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 #forLoop #whileLoop

КОМЕНТАРІ • 236

  • @lorddank1121
    @lorddank1121 4 роки тому +417

    Once more i rely on amazing Indian programming tutorials to survive my course. Thank you Neso!

  • @ramarajujaya2480
    @ramarajujaya2480 3 роки тому +82

    I am studying only because of these lectures,before this I wasn't interested in coding at all.But now I m loving it.

  • @glendubie
    @glendubie 7 місяців тому +5

    Your teaching style is not only engaging, but also incredibly effective. The way you present complex concepts with clarity and enthusiasm has truly enhanced my understanding of the C programming language. And I would like to say, thank you.

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

    The best tutorial class I have watched ever....very simple to understand and remember.....thankyou neso academy ❤️

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

    At this point, it is fair to say Nesoacademy is the best computer programming tutorials i've seen so far.🥺

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

    I've never seen anyone take their time to explain coding tutorials visually like this. thank you

  • @TECHY-24
    @TECHY-24 6 років тому +33

    thanx neso...your tutorials most valuable for my degree...again thank you very much

  • @ezeamadelightchika8622
    @ezeamadelightchika8622 6 місяців тому +2

    You're indeed the best programming teacher ever for this twenty first century . Thanks Sir 🎉❤

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

    00:00 Loops are important for automating repetitive tasks
    00:48 Automate sending notices to employees using loops
    01:35 Loops are required for repeating tasks
    02:26 A while loop is used to print values in descending order
    03:22 The for loop decrements a value and checks a condition until it is false.
    04:15 While and for loops have similar functionality
    05:05 Explanation of while loop initialization and condition checking
    05:54 For loop and while loop are the same, but differ in number of lines of code.

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

    wow, this is the most concise tutorial I have found on youtube! Thank you!

  • @Official-tk3nc
    @Official-tk3nc 4 роки тому +48

    Guys they are providing everything for free and some idots dislikes these types of videos. I think they need mental treatment

    • @bro...5849
      @bro...5849 3 роки тому

      @Chung Rons yeah I don’t give a damn

    • @pingstenedits._
      @pingstenedits._ 3 роки тому

      @Chung Rons how did you do it ?😳

  • @joyride9353
    @joyride9353 4 роки тому +13

    Such a clear and well constructed tutorial. Thank you so much

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

    I really like how you compared how 2 different loop types accounts for 1 output.

  • @eddyr978
    @eddyr978 5 років тому +6

    You are one of the best c language tutorials...also your way of speaking iss too good
    Thks sir

  • @aleenaahmad5808
    @aleenaahmad5808 4 роки тому +7

    Awesome👌, lacking words to describe my feelings of having this program right now. 😍

  • @ayushiyadav1
    @ayushiyadav1 5 місяців тому

    thanks a ton NA!! this tutor made me fall for c programming and optimistic reg rest of the prog languages. thats power of an incredible educator... lots n lots of love and huge respect!! keep up 💌🙏

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

    Our mechatronics class just watched this explanation, and it really helped clarify while and for loops; thanks !

  • @russiansoldath3625
    @russiansoldath3625 4 роки тому +6

    the most understandable lecture so far.

  • @sowbhagyaks8025
    @sowbhagyaks8025 5 років тому +4

    hey it's real good understanding and you given live example great job!!

  • @agneschristinejengalacio9149
    @agneschristinejengalacio9149 4 роки тому +11

    Thank you so much! I beat myself for not understanding the For loop (and loops in general) in college and got discouraged because I didn't get the concept. I worried about the increment/decrement part in the For loop because I was told that machines read codes line by line so when I encountered For loop I was totally flabbergasted. Like wait, there's an increment at the end of the parenthesis, why did the printed value not reflect the increment AM I GOING CRAZY???? Really, thank you so much kind sir! I'm so glad I stumbled upon this video :)

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

    Perfect explanation for beginner! My brain is clear now! Thank you!

  • @diyanarose
    @diyanarose 24 дні тому

    wow it was so clear and the visuals really helped in understanding the concept hope to see more of these videos tysm♥

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

    Amazing superb. Way of explaining so detailed with examples. I am lecturer and its really appreciative lecture.👍

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

    This video made these loops very easy to understand - thank you!

  • @vinayaksharma-ys3ip
    @vinayaksharma-ys3ip 2 роки тому +1

    Clear, precise and to the point!!!💯👍🏻Great Work Sir!!!1

  • @AmitSingh-mq7xs
    @AmitSingh-mq7xs 4 роки тому +6

    From this c tutorial I known that some people's exits in this selfish world,whose only intension to give the knowledge without any guru dakhishnaa you are too good sir

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

    Very simplified
    Understood in just one video
    Thanks man!!

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

    This is the best tutorial for c language . I simply understand ❤️

  • @rahilumar3002
    @rahilumar3002 6 років тому +6

    Respect n love from #Kashmir
    Im really impressed with these videos

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

    Absolutely great explanation 👌 👏 even our lecturer can't explain in such a simple way😃

  • @AbhishekSingh-cu1fe
    @AbhishekSingh-cu1fe 3 роки тому +3

    What a easy n understandable Explanation....Sir I wish u could be my sir in collage..u are great sir...u are truly great!🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻❤️

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

    Thank you sir.. Ever found something so good.

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

    You are an amazing instructor!!

  • @AzharAli-cr2vj
    @AzharAli-cr2vj 4 роки тому +2

    you are my such an amazing teacher love you...

  • @utkarshjaryal6170
    @utkarshjaryal6170 4 роки тому +5

    neso is love. Thankyou team neso..

  • @sandeep.696.antegra
    @sandeep.696.antegra Рік тому +1

    Amazing video...straight to the point

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

    Awesome explanation. Thanks Neso Academy

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

    thank you , i was damn confused regarding the steps ... this is so helpful!

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

    Thank you for clearing my doubt. sir❤

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

    This is my first day, and i am willing to learn more from this program.

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

    well explained, tysm this really made my day happy.

  • @hafizmuhammadzaid4587
    @hafizmuhammadzaid4587 5 років тому +1

    you are doing a great job, sir.

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

    Thousands of C programming videos but his videos are LIT🔥

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

    I think this one is the last video for those who not ever understand loop concept even for me thanks brother

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

    U r the best teacher for teaching c language..

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

    Very clearly and completely explained thank you so much

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

    Sir I have question why is this happen that after checking the condition of i>0 it not forwarding to i-- ?

  • @user-jw5gc9th2h
    @user-jw5gc9th2h 4 роки тому +5

    Bruh seriously you're stunning ♥️♥️♥️.
    One of the......best I've ever seen 🙏💓💓🔥💥

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

    You are great in explaining!!!!

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

    such a fascinating explanation

  • @snehaneogi4992
    @snehaneogi4992 4 роки тому +1

    Very well explained ...Thank u so much sir..☺️

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

    Thank you for the excellent explanation !

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

    I usually don't write comment but this is what I want 👍👍👍

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

    Thank you very much. This was really helpful and informative

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

    Thank you so much Sir . Your explanations are so great .

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

    Thanks you so sir really I understand difference between while loop & for loop

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

    thanks Neso academy .. very informative, ever I had 👌

  • @estherwilliams5394
    @estherwilliams5394 2 місяці тому +1

    This was extremely helpful

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

    Well explanation sir.tqu for your explanation.

  • @utkarshbajpai6128
    @utkarshbajpai6128 4 роки тому

    what if you put a static funtion in initialiazation of a for loop will it be executed ?

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

    Thank you for this video. New subscriber here from Philippines😊

  • @baltimoredude1
    @baltimoredude1 4 роки тому +28

    @4:46 In the for-loop, you forgot to declare the counter "i" as of type int. One, especially the first time learner, may get confused that you're declaring "i" and initializing it in the while-loop but skipping it in the for-loop. Otherwise, everything looks okay.

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

      Was going to comment this, glad I found your comment

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

      @@play_sports_and_read_books explain?

    • @ergoproxy3032
      @ergoproxy3032 Рік тому +8

      @@x4sting529 even while you are using for loop you have to initialize the variable, such as "int i". you can initialize it in "for" or before it:
      int i;
      for(i=3;i>0;i- -)
      OR
      for(int i =3;i>0;i- -)
      both works same

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

    You are the best in the explaining 🔥

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

    Such an instreesting explanation

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

    Love the way you explain but just wanted to point out that @ 04:46 in both while loop example and for loop example the statement has to be
    printf("%d",i); not print(i)

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

    Best video I ever watched for loop

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

    Excellent explanation and presentation!👏❤️

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

    holy!! thanks for the explanation, now i understand it😭

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

    wow amazing man now i thik loop is just like learning abcd thank you u make my day

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

    This was very helpful. Thank you.

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

    Soo nice explanation and your video is also relaxing your explanation is great

  • @aidynkadyr955
    @aidynkadyr955 5 років тому +3

    Like you videos!!! Hello from Kazakhstan

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

    loved the explanation....thankyou neso....

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

    i am learning c,c++ from your channel thanks you so much sir 🥰🥰🤗🤗

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

    Finally... I got for what I was searching, explanation was like booooooooom🔥🔥 today I got the best teacher of cs in u 😊😊, keep it up sir.

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

    Thanks alot sir it is really helpful,👏👏

  • @srivanikothavadla4606
    @srivanikothavadla4606 4 роки тому +1

    Thank you soo much ur a wonder full guy..

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

    very simple to understand and great explanation

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

    This is an excellent channel

  • @Name-is2bp
    @Name-is2bp 2 роки тому

    since you said they are the same thing,
    how can i make these two code snippets give the same output?
    first, the while loop :
    int i = 5;
    while(i >= 0){
    printf("%d pre - ", i);
    --i;
    printf("%d post
    ", i);
    }
    second, the for loop:
    for(int i = 5; i >= 0; --i){
    printf("%d pre - ", i);
    }

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

    Thanks this video really helped me understand. Gave a like:)

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

    very interesting thank you so much Neso

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

    Thanks so much ,this is interesting

  • @saikrishna-sh8fl
    @saikrishna-sh8fl 6 років тому +1

    Sir upload all videos as soon as possible so that it will be more beneficial for students like me.

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

    Excellent explanation

  • @hesarukeerthana..8359
    @hesarukeerthana..8359 Рік тому

    You satisfied me ❤️❤️😭😭thanksssss 🥺🥺

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

    neso is so much better then other youtubers ...........

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

    Great explanation

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

    Thanks sir for that wonderful tutorial

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

    Which compiler is the best for c programming sir...?

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

    Thanks bro.... Thanks soo much

  • @Salamanca-joro
    @Salamanca-joro 2 місяці тому

    الله يعطيك العافية

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

    Really assume explanation 👏👍

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

    you so good man keep in going

  • @DSCSNayanakb
    @DSCSNayanakb 4 роки тому +1

    Sir superb explanation

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

    god bless you sir its so easy

  • @jomarbombita5078
    @jomarbombita5078 4 роки тому

    Great explaination

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

    Its always Neso.Subbed

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

    Thank u very much.

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

    Sir you are writing print instead of printf
    Is it the syntax of loops or a typo