Write a for loop that prints the integers 50 through 1, separated by spaces. Use no variables other than count.
LANGUAGE: JAVA
CHALLENGE:
Write a for loop that prints the integers 50 through 1, separated by spaces. Use no variables other than count.
SOLUTION:
LANGUAGE: JAVA
CHALLENGE:
Write a for loop that prints the integers 50 through 1, separated by spaces. Use no variables other than count.
SOLUTION:
for (int count = 50; count >= 1; count–- ){ System.out.print(count + " "); }