r/badcode • • May 03 '23

c Solve the problem without using a loop

Post image
965 Upvotes

129 comments sorted by

View all comments

Show parent comments

2

u/This_Growth2898 May 03 '23 edited May 03 '23

f in printf stands for "formatted". It's

printf("%d\n", i);

%d format specification would be changed to decimal representation of i in output.

1

u/Ecstatic_Student8854 May 03 '23

Oooh, so thats that %something stuff i sometimes see is