C Language Exercise 11 / 15

for and while Loops

Easy 12 points

Display numbers from 1 to 5 using a for loop.

C loops repeat code. for (initialization; condition; increment) repeats while the condition is true. while also repeats but increment must be managed manually.

Well done! 🎉
Your answer is correct! You earned 12 points.
Your code C Language
Result