0

i am having a problem printing using a single loop

input output n=1 1 n=2 1 4 n=3 1 4 7 n=4 1 4 7 10

27th Jul 2022, 10:56 AM
SUMIT SIROHI
SUMIT SIROHI - avatar
3 Respuestas
0
row is string
27th Jul 2022, 11:45 AM
zemiak
0
whats the logic
27th Jul 2022, 11:54 AM
SUMIT SIROHI
SUMIT SIROHI - avatar
0
Sumit, I think it means 1 + <i> * 3 Where <i> is a loop counter initialized by zero, run the loop while <i> < <N> ...
27th Jul 2022, 12:11 PM
Ipang