02:17C Programming Tutorial for Beginners: Loops in C (C for Rookies, Part 4)
From the creator
C Programming Tutorial for Beginners: Lesson 4 of C for Rookies. Loops — how C repeats: the for loop (count with i), the while loop (repeat while true), for vs while, the running total (1 + 2 + ... + 100 = 5050), nested loops that draw a triangle of stars, and the classic beginner bug: the loop that never stops. We build one program that asks your age again and again until you give it a real answer — then counts to your age in tens. No experience needed. Complete beginners welcome. Chapters: 0:00 Intro — why repeat? 1:47 The for loop — count with i 4:27 The while loop — repeat while true 7:05 for vs while — how to choose 9:25 Loop body at work — running total & nested loops 12:34 Build the full program — age4.c 16:07 The classic bug — the loop that never stops 19:15 Outro — recap + subscribe for Part 5 This is Lesson 4 of the restarted Learn AI in Public course: C, then C++, then C#, for complete beginners, in depth, one 20-minute lesson every day. Tomorrow in Part 5: arrays — storing many values in one variable, so you can keep ten ages or a hundred scores without declaring a hundred boxes. If this helped, subscribe and share it with a developer who's learning to code — new lesson every day. #CProgramming #LearnC #CTutorial #ProgrammingForBeginners #LearnToCode #CodingForBeginners #CLoops #ForLoop #WhileLoop #CLanguage #GCC #VSCode #BuildInPublic
Published 2026-11-17 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.
Keep exploring Learn to Code
02:17
10:51Competitive Programming Tutorial #42 | Convex hull trick: turn the DP into lines
SyntaxPilot
08:20
04:59IIMT Collaborative Robot Palletizing Programming Tutorial | Easy Pick & Place Stacking
IIMTRobot
09:25
01:59
08:41