C Programming Tutorial 76 - While Loop

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

try this too:-
int i = 0;
while(printf("%d ", i++), i < 10);
and
int i = 0;
while(printf("%d ", ++i), i < 10);
Similar thing can be done in a for loop too.

rodwynnejones
Автор

I like the for one because it all happens in one line.

pradyumnasrivastava
Автор

how do we use variables within while loop? for example we take the variable in while loop as an input and take that number of further inputs

saniakhan
Автор

While we're on the subject...thanks for all the awesome videos!

PunmasterSTP
Автор

Thanks for the awesome series. I just decided i wanted to give it another go and stick to it this time with the C language instead of python.

I was able to successfully complete the first three easy coding challenges in the app solo learn and got stuck on the fourth because it requires an array. So now I'm back to this series now so i can get to the part where you talk about arrays.

I started watching this series two weeks ago in my spare time and i felt so awesome when i was able to figure out the solution to the solo learn challenge i was stuck on without even looking at a screen. The answer just came to me!

A really important thing that anyone trying to learn with no experience is to go look up some videos about thinking like a programmer. It is a good skill to learn to use in your daily life, not just when coding.

Steve jobs said he thinks everyone should learn to code because it teaches you how to think.

Anyways, this is exciting and i just wanted to say thank you as i continue going through this series.

mynameisearlb
Автор

I don't know, our instructor just show the output then we will do the program. It's hard for me to analyze

tapantatv
Автор

I've been following you and doing (trying) the exercises and I appreciate what you did for us newbies, but you could code the explanation and then code an example. It would be so much clearer...

lgfxtxe
Автор

Is there a way you can display how many times a loop loops in your output?

michaelsobers
Автор

what does the (i++) do? i mean whats the main purpose of it like is it to stop the loop orr???

talaf
Автор

2:20 thats really all there is to it what else.. 😂😂😂

avocadolimbu
Автор

LOL almost crashed my computer forgot to put the i++ at the end

YazhShah
Автор

Why do you sound like you are about to cry any moment now 😂

stefanlol
Автор

Isn't a key difference between for loops and while loops that the counting variable controlling the loop will *always* have a wider scope than just the loop in while loops?

lindenshearar