For Loops Answers 3

From CompSciWiki
Jump to: navigation, search
int i;

for(i = 9 ; i > 0 ; i-- )
{
   System.out.print(i);
}

Result: 9876543210

Loops > For Loops