Write a for loop that prints all the even integers from 80 through 20 inclusive, separated by spaces.
.
.
Click on the title for the solution
.
.
for (int x=80; x>19; x--)
{if (x%2==0) cout<<x<<' ';}
.
Click on the title for the solution
.
.
This is the answer:
:
for (int x=80; x>19; x--)
{if (x%2==0) cout<<x<<' ';}
Comments
Post a Comment