Answer:
create the integer variable and initialize it to one, with the do statement, increment the variable by one and print it, then the while statement checks if the variable is less than or equal to 10.
#include <iostream>
using namespace std;
int main(){
int i = 1;
do {
cout<< i << "\n";
i++;
}
while (i <= 10);
}
Explanation:
The C++ source code initializes the integer variable i to one and increments and print the value if the value is less than or equal to ten. The do-while statement executes a block of code before the condition is implemented.
Int sum = 0;
int item = 0;
do
{
item;
sum = item;
if (sum > 4)
break;
} while (item < 5);
You will generate a compile error, as having (item;) as a statement on its own is invalid.
Change is what is left over
ex. the cashier tells you "here is your leftover change sir/ma'am "<span />