You run 6 laps of the track and drink some water after every third lap. Show one line per lap: usually Lap 1, and on a water lap Lap 3: water.
Lap 1 Lap 2 Lap 3: water Lap 4 Lap 5 Lap 6: water
#include <stdio.h>
int main(void) {
for (int lap = 1; lap <= 6; lap++) {
// your code here: on laps divisible by 3 show Lap n: water, otherwise Lap n
}
return 0;
}
Run tries the examples. When they look right, Submit.