Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Fails on i >= 100. Should give "0" not "10". Commented Apr 2, 2012 at 0:45
  • @Makoto can't see this condition. Commented Apr 2, 2012 at 0:47
  • 1250 % 10 = 0, satisfying the condition. printf("ten %d\n", i/10) will give 125, not 5. Commented Apr 2, 2012 at 0:50
  • Check my revision to my reply above. Commented Apr 2, 2012 at 0:54
  • @Makoto yes, and from my point of view it will be exact truth - 1250 is the 125th ten met. Commented Apr 2, 2012 at 0:56