Question: State which values of the control variable x are printed by each of the following for statements: a) for (x = 2; x
State which values of the control variable x are printed by each of the following for statements:
a) for (x = 2; x <= 13; x += 2) { printf("%u ", x); }
b) for (x = 5; x <= 22; x += 7) { printf("%u ", x); }
c) for (x = 3; x <= 15; x += 3) { printf("%u ", x); }
d) for (x = 1; x <= 5; x += 7) { printf("%u ", x); }
e) for (x = 12; x >= 2; x -= 3) { printf("%d ", x); }
Written in "C" please.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
