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.
-
\$\begingroup\$ A user flagged this saying "is incorrect: doesn't loop at all, i.e. it works just for a given number, not _all_ numbers below it. see ideone.com/pO6UwV ." That's not a reason to flag as moderators do not judge correctness, but it may be an issue. \$\endgroup\$dmckee --- ex-moderator kitten– dmckee --- ex-moderator kitten2013年04月11日 00:00:38 +00:00Commented Apr 11, 2013 at 0:00
-
\$\begingroup\$ Based upon this comment from the question creator: "@Ilmari I am looking for 11 as input and 11th as output. I don't mind if it processes multiple lines but what I had in mind was processing just a single number. – NickC Jan 20 '12 at 21:00" it is doing what it should. I.e. it only should process a single number. \$\endgroup\$Fors– Fors2013年04月11日 04:42:21 +00:00Commented Apr 11, 2013 at 4:42
-
\$\begingroup\$ sorry for that flag; I misread the requirement, and didn't have enough rep at the time, to comment directly. Sorry again. :) \$\endgroup\$Will Ness– Will Ness2013年04月13日 19:48:11 +00:00Commented Apr 13, 2013 at 19:48