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.
.
.
Click on the title for the solution
.
.
for (count=50;count>0;count--)
{cout<<count<<' ';}
.
Click on the title for the solution
.
.
This is the answer:
:
for (count=50;count>0;count--)
{cout<<count<<' ';}
Comments
Post a Comment