Given an int variable count that has already been declared , write a for loop that prints the integers 50 through 1, separated by spaces. Use no variables other than count.

LANGUAGE: C++

CHALLENGE:

Given an int variable count that has already been declared , write a for loop that prints the integers 50 through 1, separated by spaces. Use no variables other than count.

SOLUTION:


for (count=50; count>0; count--){
    cout << count << " ";
}