I need to create a program that will count down from a specified number, using decrements of another specified number, however, to keep things neat, no more than 10 numbers can be printed on a line, or 70 characters. I have been given the hint to use sprintf to print the number to a string and then find the length of the formatted string. I have worked out the 10 numbers per line thing, however I am not really sure how to use sprintf to keep track of how many characters have been printed on the line, and I haven't been able to find any examples of the same sort of thing using the same function.
Any help is greatly appreciated :).
Tags: