Sunday, 18 March 2007

Another Java 5 results per line solution




for (values = startvalue; values <= endvalue; values++) {
System.out.print(values + ", ");
count++;
if (count == 5)
{
System.out.print("\n");
count = 1;
}
}
Thanks Lloydy!

No comments:

Post a Comment