C Programming Tutorial 76 - While Loop

  Рет қаралды 59,904

Caleb Curry

Caleb Curry

Күн бұрын

Start your software dev career - calcur.tech/de... 💯 FREE Courses (100+ hours) - calcur.tech/al...
🐍 Python Course - calcur.tech/py...
✅ Data Structures & Algorithms - calcur.tech/ds...
~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
✉️ Newsletter - calcur.tech/ne...
📸 Instagram - / calebcurry
🐦 Twitter - / calebcurry
🔗 LinkedIn - / calebcurry
▶️ Subscribe - calcur.tech/sub...
👨🏻‍🎓 Courses - www.codebreakt...
~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~
↪ My Amazon Store - www.amazon.com...
🅿 Patreon - calcur.tech/pat...
🅖 GitHub Sponsors - github.com/spo...
Ⓟ Paypal - paypal.me/calcur
🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
📈 Buy Bitcoin - calcur.tech/cr...
Reserve the Ruby Steel crypto rewards card and get a $25 bonus (use affiliate code "Caleb") - calcur.tech/cr...

Пікірлер: 29
@rodwynnejones
@rodwynnejones 4 жыл бұрын
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.
@pradyumnasrivastava2319
@pradyumnasrivastava2319 4 жыл бұрын
I like the for one because it all happens in one line.
@mynameisearlb
@mynameisearlb 3 жыл бұрын
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.
@saniakhan4121
@saniakhan4121 3 жыл бұрын
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
@UracromToromag
@UracromToromag Жыл бұрын
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...
@LimeWitness
@LimeWitness 5 жыл бұрын
I prefer the for loop tbh
@tapantatv2740
@tapantatv2740 3 жыл бұрын
I don't know, our instructor just show the output then we will do the program. It's hard for me to analyze
@stefanlol2358
@stefanlol2358 3 жыл бұрын
Why do you sound like you are about to cry any moment now 😂
@sunizaharieva6836
@sunizaharieva6836 3 жыл бұрын
Becouse programming makes you cry..
@sajalkmr
@sajalkmr Жыл бұрын
true
@judithukachukwu6434
@judithukachukwu6434 Жыл бұрын
😂
@nomthandazomoyo7576
@nomthandazomoyo7576 3 жыл бұрын
The for loop is much simpler i guess
@PunmasterSTP
@PunmasterSTP 3 жыл бұрын
While we're on the subject...thanks for all the awesome videos!
@avocadolimbu5641
@avocadolimbu5641 2 жыл бұрын
2:20 thats really all there is to it what else.. 😂😂😂
@gustalbert2034
@gustalbert2034 Жыл бұрын
DUDE I LOVE U THANKS
@YazhShah
@YazhShah 3 жыл бұрын
LOL almost crashed my computer forgot to put the i++ at the end
@michaelsobers2871
@michaelsobers2871 3 жыл бұрын
Is there a way you can display how many times a loop loops in your output?
@palanix3145
@palanix3145 3 жыл бұрын
if you want to see every time it loops, it's just printf("%d",i);. This way, everytime the loop does something, it prints i if you only want to see how many times, but not the individual runs, then you have to declare i BEFORE the loop, and then at the end print i.
@the_anonymous_spacegoose9384
@the_anonymous_spacegoose9384 3 жыл бұрын
what program is that
@palanix3145
@palanix3145 3 жыл бұрын
visual studio code
@lindenshearar953
@lindenshearar953 2 жыл бұрын
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?
@talaf1875
@talaf1875 3 жыл бұрын
what does the (i++) do? i mean whats the main purpose of it like is it to stop the loop orr???
@eloplague7319
@eloplague7319 2 жыл бұрын
It increases the value of I by 1. Everytime it does, let's say I is 2, and we're comparing it to 6, so while i
@londonsystem6622
@londonsystem6622 4 жыл бұрын
The Best!
@dhananjaysangle7982
@dhananjaysangle7982 Жыл бұрын
Good
@wrnlb666
@wrnlb666 2 жыл бұрын
goto is still the best
@adityamishra3815
@adityamishra3815 5 жыл бұрын
U r great
C++ Programming Tutorial 77 - Creating a Namespace
5:51
Caleb Curry
Рет қаралды 15 М.
you will never ask about pointers again after watching this video
8:03
How To Get Married:   #short
00:22
Jin and Hattie
Рет қаралды 32 МЛН
Synyptas 4 | Жігіттер сынып қалды| 3 Bolim
19:27
kak budto
Рет қаралды 1,1 МЛН
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 3,4 МЛН
C Programming Tutorial 77 - Nested While Loops
6:00
Caleb Curry
Рет қаралды 26 М.
This Algorithm is 1,606,240% FASTER
13:31
ThePrimeagen
Рет қаралды 840 М.
While loops in Python are easy ♾️
6:58
Bro Code
Рет қаралды 379 М.
C if statements ✔️
4:06
Bro Code
Рет қаралды 49 М.
#12: while Loop in C Programming |  C Programming for Beginners
12:45
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 449 М.
while loop C | Programming Tutorial
7:04
Portfolio Courses
Рет қаралды 7 М.
While Loop Java Tutorial #37
8:51
Alex Lee
Рет қаралды 315 М.
for and while Loops
6:49
Neso Academy
Рет қаралды 734 М.