Questions tagged [for-loop]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
4k views

Pset7, Index: How to use loops in Python and Jinja?

I felt like I could understand the for loops great in c, but seem to be hitting a wall here. Some generic conceptual questions before i get into it: 1) ANSWERED. what sequence does the program run, ...
3
votes
2answers
14k views

Problem with “expression result unused” error in for-loop

There is obviously something missing in my understanding of the for-loop. Part of my code looks like this: int height; do { printf("Height?: "); height = GetInt(); } while (height < 0 || ...