help please

What are the values of i and n after this loop executes?
int n = 0;
for(int i = 0; i < 12; i++) {
n += 3;
}


You won't find much help if you ask us to do your homework. Either work it through one step at a time or code it and run it after adding some print statements. At least take a guess and we'll help you guide you...
The loop executes 12 times.
Each time n increases by 3.
n starts as 0
so.....
Topic archived. No new replies allowed.