for and while Loops

  Рет қаралды 729,842

Neso Academy

Neso Academy

Күн бұрын

Пікірлер: 237
@lorddank1121
@lorddank1121 5 жыл бұрын
Once more i rely on amazing Indian programming tutorials to survive my course. Thank you Neso!
@itsgamingtime..7001
@itsgamingtime..7001 4 жыл бұрын
It's NESO.
@lorddank1121
@lorddank1121 4 жыл бұрын
@@itsgamingtime..7001 fixed it now! Keep in mind I posted this about a year ago.
@saurabhsaxena1992
@saurabhsaxena1992 2 жыл бұрын
We all follow. It's one of the best
@DarkDevilVaqif
@DarkDevilVaqif Жыл бұрын
YAYA BLABLAjust kidding
@Noor_868
@Noor_868 5 ай бұрын
Ok ​@@lorddank1121
@Official-tk3nc
@Official-tk3nc 4 жыл бұрын
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
@coupleclips-a
@coupleclips-a 3 жыл бұрын
@Chung Rons how did you do it ?😳
@ezeamadelightchika8622
@ezeamadelightchika8622 8 ай бұрын
You're indeed the best programming teacher ever for this twenty first century . Thanks Sir 🎉❤
@eddyr978
@eddyr978 5 жыл бұрын
You are one of the best c language tutorials...also your way of speaking iss too good Thks sir
@baltimoredude1
@baltimoredude1 4 жыл бұрын
@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 жыл бұрын
Was going to comment this, glad I found your comment
@x4sting529
@x4sting529 2 жыл бұрын
@@play_sports_and_read_books explain?
@ergoproxy3032
@ergoproxy3032 2 жыл бұрын
@@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
@FashionablyGrateful
@FashionablyGrateful 4 жыл бұрын
You are an amazing instructor!!
@sasidharreddychalla4819
@sasidharreddychalla4819 2 жыл бұрын
Absolutely great explanation 👌 👏 even our lecturer can't explain in such a simple way😃
@ashutoshtripathi9890
@ashutoshtripathi9890 3 жыл бұрын
This is the best tutorial for c language . I simply understand ❤️
@estherwilliams5394
@estherwilliams5394 4 ай бұрын
This was extremely helpful
@gautamraodongare4822
@gautamraodongare4822 2 жыл бұрын
I usually don't write comment but this is what I want 👍👍👍
@ramkoirala1626
@ramkoirala1626 3 жыл бұрын
Thousands of C programming videos but his videos are LIT🔥
@aayushmaan4334
@aayushmaan4334 3 жыл бұрын
Sir the program has a mistake in the printing statement you need to put a + sign also to display the value of 'i' else it will display only i . Hope you understand sir and thanks for explaining so nicely and shortly
@ABFC23
@ABFC23 2 жыл бұрын
neso is so much better then other youtubers ...........
@lemithiuscarcius9396
@lemithiuscarcius9396 2 жыл бұрын
Thank you Neso my teacher isn't good at teaching one of this he the way he teaches is he always make it scripted and doesn't compare both of for and while loop.
@shimaalcarrim7949
@shimaalcarrim7949 4 жыл бұрын
This is an excellent channel
@mehak_editz4135
@mehak_editz4135 3 жыл бұрын
Amazing superb. Way of explaining so detailed with examples. I am lecturer and its really appreciative lecture.👍
@princeyaduvanshi9519
@princeyaduvanshi9519 2 жыл бұрын
i am learning c,c++ from your channel thanks you so much sir 🥰🥰🤗🤗
@snehaneogi4992
@snehaneogi4992 4 жыл бұрын
Very well explained ...Thank u so much sir..☺️
@JusticeNjai
@JusticeNjai 11 ай бұрын
Such an instreesting explanation
@rg4635
@rg4635 5 жыл бұрын
I haven't get any Python video from your channel..... please uploade video on Python for the beginners
@vikrantsonawane5411
@vikrantsonawane5411 2 жыл бұрын
legendry teaching skill
@indiancoder8301
@indiancoder8301 5 жыл бұрын
Sir you are writing print instead of printf Is it the syntax of loops or a typo
@appaya9884
@appaya9884 3 жыл бұрын
Thank you for this video. New subscriber here from Philippines😊
@Ravikumar-gj6qw
@Ravikumar-gj6qw 4 жыл бұрын
Then when to use for loop and while loop then
@urhainess
@urhainess 2 жыл бұрын
So glad I found your channel. This kind of explaination is what i want right now because I am still struggling to understand how loops works. Very detailed and specific..THanks a lot for sharing your knowledge! More power! New subscriber here
@everything6707
@everything6707 3 жыл бұрын
wow amazing man now i thik loop is just like learning abcd thank you u make my day
@reenasrivastav8788
@reenasrivastav8788 Жыл бұрын
could you make a video how to convert for loop to while loop
@smiley3239
@smiley3239 Жыл бұрын
holy!! thanks for the explanation, now i understand it😭
@Salamanca-joro
@Salamanca-joro 5 ай бұрын
الله يعطيك العافية
@GoodBoy-bt7kp
@GoodBoy-bt7kp 6 жыл бұрын
Oh man I am addicted to coding.
@Jkt61205
@Jkt61205 4 жыл бұрын
yes me too, this credit goes to NESO ACADEMY😁😁
@DaSnipy
@DaSnipy 2 жыл бұрын
Quick Crisp & Smooth ... +1
@jollyyadav8034
@jollyyadav8034 2 жыл бұрын
Really assume explanation 👏👍
@abhijitkalita1005
@abhijitkalita1005 3 жыл бұрын
Its always Neso.Subbed
@hesarukeerthana..8359
@hesarukeerthana..8359 2 жыл бұрын
You satisfied me ❤️❤️😭😭thanksssss 🥺🥺
@DarkKnightLives
@DarkKnightLives 2 жыл бұрын
Ofcourse, we have groups in GMail.
@Velocitytechnologies
@Velocitytechnologies 2 жыл бұрын
as simple as that ..thanks alot
@maddalasreevani9563
@maddalasreevani9563 2 жыл бұрын
loved the explanation....thankyou neso....
@fatimamyousuf
@fatimamyousuf 5 жыл бұрын
Thank you, this video was really helpful!!!!
@sabahatnoori9866
@sabahatnoori9866 2 жыл бұрын
Thanks alot sir it is really helpful,👏👏
@margad6969
@margad6969 2 жыл бұрын
It was super useful thanks for the video💌
@kaithabib7276
@kaithabib7276 Жыл бұрын
Thanks this video really helped me understand. Gave a like:)
@ramarajujaya2480
@ramarajujaya2480 3 жыл бұрын
wonderful explanation sirjee
@akashKumar-dv9xk
@akashKumar-dv9xk 4 жыл бұрын
Please make video of c++ also.
@PetBuddies
@PetBuddies 3 жыл бұрын
Can the following program sum all the numbers in the array num[ ]? If not, modify only one variable or a value so that you can sum first ten numbers in the array #include int main(){ int num[11] = {5, 10, 15, 20, 0, 30, 35, 40, 45, 50, 0}; int i=0, sum=0; while(num[i%5]){ sum = sum+num[i]; i=i+1; } printf("%3d",sum); return 0; }
@mokkalapradeep7290
@mokkalapradeep7290 5 жыл бұрын
plz make a viedo on merge sort,quick sort it was difficult to understand to me
@yashitachauhan5946
@yashitachauhan5946 2 жыл бұрын
Sir I have question why is this happen that after checking the condition of i>0 it not forwarding to i-- ?
@Name-is2bp
@Name-is2bp 3 жыл бұрын
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); }
@noicehockey9920
@noicehockey9920 5 жыл бұрын
Thank you!
@raj_patel_43
@raj_patel_43 5 жыл бұрын
Very good explanation
@rahulshendre7089
@rahulshendre7089 9 ай бұрын
Thanks a lot
@tobythethird5694
@tobythethird5694 3 жыл бұрын
you're amazing,thank you
@kuljeetkaur6185
@kuljeetkaur6185 2 жыл бұрын
why dont we increment the value of i?
@iqbal159
@iqbal159 3 жыл бұрын
Sir, if loop condition for (i = 0; i < a1; ++i); can execute but for loop condition for (i = 0; i < 1a; ++i); can't execute... SyntaxError can i execute for (i = 0; i < 1a; ++i);
@true4189
@true4189 4 жыл бұрын
Thank u
@rewardx
@rewardx 3 жыл бұрын
To those who's just brushing up the concepts 05:30
@bhavyamaroth6102
@bhavyamaroth6102 2 жыл бұрын
Thank u 🥰👍
@faiezahmedkhan
@faiezahmedkhan 5 жыл бұрын
Doing great sir
@clinitajoy5709
@clinitajoy5709 4 жыл бұрын
Thank u so much🙏
@Faisaffvbb
@Faisaffvbb Жыл бұрын
You the best
@joeyng1282
@joeyng1282 4 жыл бұрын
Dude is good.
@_ni._sha
@_ni._sha 3 жыл бұрын
Thank youu
@43286173
@43286173 5 жыл бұрын
Nice 👍🏻
@mahnazataie1116
@mahnazataie1116 2 жыл бұрын
Like always 🥰👏
@sowbhagyaks8025
@sowbhagyaks8025 5 жыл бұрын
hi, had you been doing tutorials on java?
@pujaavij2293
@pujaavij2293 4 жыл бұрын
Yeèßssß
@satyarazzor4861
@satyarazzor4861 2 жыл бұрын
I do not Believe Whatever we can do in while can be done in forloop .. there are certain problems where we cant use forloop for thats why there is a while loop... See if you are suppose to send 100 Packets to certain address think it in real world or in internetworld as in Data Packets (Same thing) if you use for loop we use it with certain boundries of itrating where we pre set the variable i and how much time that i shal be increamented or decreamented.. but in this case u cant use for loop... we have to check whether the address is right before sending every packet.. so if u use while loop it will always verify the address show bellow: Ex:- While(Address==VerifiedAddress) { send Packet packet no++; } if condition true . then the first packet will send then it will repeat until it send all packet.. if same thing you want to achieve in for loop you need a if statement before every loop and think it is impossible to be done ! but yes we can do every for loop statements into while loop just by adding increament and decreament inside the while loop at end.. works as same.. but while can do things which for cant do..
@shortly7770
@shortly7770 5 жыл бұрын
@asyrafebo4609
@asyrafebo4609 4 жыл бұрын
Hmm, i understand how the for loop works now, perhaps the basic only. How to do if a question is like this " calculate the total price for 15 items purchased by using for control structure". I mean, can anyone help me what does it mean by using for control structure? I've searches a lot on how "for loop" works but i still can't do as the question asked.
@sabbir732
@sabbir732 Жыл бұрын
😮😮
@ramarajujaya2480
@ramarajujaya2480 3 жыл бұрын
I am studying only because of these lectures,before this I wasn't interested in coding at all.But now I m loving it.
@faizanwer010
@faizanwer010 10 ай бұрын
Same with me dude.❤
@TECHY-24
@TECHY-24 6 жыл бұрын
thanx neso...your tutorials most valuable for my degree...again thank you very much
@sravangaddameedi
@sravangaddameedi 3 жыл бұрын
The best tutorial class I have watched ever....very simple to understand and remember.....thankyou neso academy ❤️
@rahulshendre7089
@rahulshendre7089 9 ай бұрын
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.
@agneschristinejengalacio9149
@agneschristinejengalacio9149 4 жыл бұрын
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 :)
@imranlatif5796
@imranlatif5796 2 жыл бұрын
same situation with me
@joyride9353
@joyride9353 4 жыл бұрын
Such a clear and well constructed tutorial. Thank you so much
@glendubie
@glendubie 9 ай бұрын
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.
@DArK-xj8lr
@DArK-xj8lr 3 жыл бұрын
rip that guy who tried to send the notice to everyone manually
@rahilumar3002
@rahilumar3002 6 жыл бұрын
Respect n love from #Kashmir Im really impressed with these videos
@shalomchika5004
@shalomchika5004 2 жыл бұрын
At this point, it is fair to say Nesoacademy is the best computer programming tutorials i've seen so far.🥺
@user-jw5gc9th2h
@user-jw5gc9th2h 5 жыл бұрын
Bruh seriously you're stunning ♥️♥️♥️. One of the......best I've ever seen 🙏💓💓🔥💥
@aleenaahmad5808
@aleenaahmad5808 4 жыл бұрын
Awesome👌, lacking words to describe my feelings of having this program right now. 😍
@utkarshjaryal6170
@utkarshjaryal6170 5 жыл бұрын
neso is love. Thankyou team neso..
@russiansoldath3625
@russiansoldath3625 4 жыл бұрын
the most understandable lecture so far.
@bhavyamaroth6102
@bhavyamaroth6102 2 жыл бұрын
for (a=1,b=6; a < b; a++,printf("%d ",a)); This program is giving me error expected error or something what to do
@AbhishekSingh-cu1fe
@AbhishekSingh-cu1fe 4 жыл бұрын
What a easy n understandable Explanation....Sir I wish u could be my sir in collage..u are great sir...u are truly great!🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻❤️
@nazmapervin7198
@nazmapervin7198 4 жыл бұрын
Thank u very much.
@sowbhagyaks8025
@sowbhagyaks8025 5 жыл бұрын
hey it's real good understanding and you given live example great job!!
@sanjay1979
@sanjay1979 2 жыл бұрын
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.
@GaganSingh-zz9el
@GaganSingh-zz9el 2 жыл бұрын
yes , you have completed the whole playlist?
@bharathjramalingam
@bharathjramalingam 2 жыл бұрын
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)
@aidynkadyr955
@aidynkadyr955 6 жыл бұрын
Like you videos!!! Hello from Kazakhstan
@zakariaeboutahar1991
@zakariaeboutahar1991 3 жыл бұрын
you so good man keep in going
@AzharAli-cr2vj
@AzharAli-cr2vj 4 жыл бұрын
you are my such an amazing teacher love you...
@joojok72
@joojok72 3 жыл бұрын
wow, this is the most concise tutorial I have found on youtube! Thank you!
@tomigoi
@tomigoi Ай бұрын
Hello. Not sure if the channel's admin is still active, but I have a question. What happens if the increment/decrement part is pre-fix rather than post-fix? I see that we always put post-fix increment/decrement but I do not understand the mechanic of this. If anyone understand please explain. Thank you.
@letsexecutecplusplus7261
@letsexecutecplusplus7261 4 жыл бұрын
thanks Neso academy .. very informative, ever I had 👌
@nakdickson
@nakdickson 2 жыл бұрын
I've never seen anyone take their time to explain coding tutorials visually like this. thank you
@dankmemer2774
@dankmemer2774 4 жыл бұрын
I really like how you compared how 2 different loop types accounts for 1 output.
@whosurbunny
@whosurbunny Жыл бұрын
Im not understanding why the ACTUAL course Im in... cant express/teach in a more basic/human way... much like this video... Im starting to struggle in the understanding of that now seems to be a simple program... uhh, Im grateful for multi-source learning and sharing of knowlesge.
@AmitSingh-mq7xs
@AmitSingh-mq7xs 4 жыл бұрын
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
@venkateshsherikar6439
@venkateshsherikar6439 5 жыл бұрын
Best 🙏🙏❤️
@m_205
@m_205 5 жыл бұрын
Thank you sir.. Ever found something so good.
do-while Loop
5:03
Neso Academy
Рет қаралды 667 М.
Loops in C++ (for loops, while loops)
12:20
The Cherno
Рет қаралды 406 М.
Ozoda - Lada (Official Music Video)
06:07
Ozoda
Рет қаралды 13 МЛН
Inside Out 2: ENVY & DISGUST STOLE JOY's DRINKS!!
00:32
AnythingAlexia
Рет қаралды 10 МЛН
you will never ask about pointers again after watching this video
8:03
Call By Value & Call By Reference in C
8:34
Neso Academy
Рет қаралды 1,3 МЛН
#12: while Loop in C Programming |  C Programming for Beginners
12:45
C++ Tutorial -   Loops In C++ [For Loop, While Loop, Do While Loop]
16:20
While loops in Python are easy ♾️
6:58
Bro Code
Рет қаралды 367 М.
Conditionals (Switch)
7:24
Neso Academy
Рет қаралды 389 М.
Solve Any Pattern Question With This Trick!
57:20
Kunal Kushwaha
Рет қаралды 2,4 МЛН
Learn JavaScript WHILE LOOPS in 8 minutes! 🔁
8:12
Bro Code
Рет қаралды 29 М.