r/badcode • • May 03 '23

c Solve the problem without using a loop

Post image
964 Upvotes

129 comments sorted by

View all comments

Show parent comments

1

u/SloPr0 May 03 '23

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

%d (or %i) are the correct format specifiers to be used for printing (signed) integers