Write a for loop that prints the odd integers 11 through 121 inclusive, separated by spaces.
.
.
Click on the title for the solution
.
.
for (int x=11;x<122;x++)
{if (x%2!=0) cout<<x<<' ';}
.
Click on the title for the solution
.
.
This is the answer:
:
for (int x=11;x<122;x++)
{if (x%2!=0) cout<<x<<' ';}
Comments
Post a Comment