Write a for loop that prints all the even integers from 80 through 20 inclusive, separated by spaces.

Write a for loop that prints all the even integers from 80 through 20 inclusive, separated by spaces.

LANGUAGE: JAVA

CHALLENGE:
Write a for loop that prints all the even integers from 80 through 20 inclusive, separated by spaces.

SOLUTION:

{for ( int n = 80; n >= 20; n -= 2)
System.out.print( n + " " );}

Add comment