I have an infinite loop, and would like to add an if...else loop that triggers when the loop is at the 10th, 20th, 30th, (aka a multiple of 10) time.
I'd like to know whether it's possible to make something like
if (x is the multiple of 10) printf(something)
else printf(something else)
Thanks!