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.
The flowchart and the program illustrate the use of do while loop.
The do while loop is used to perform repetitive operations
The C code where comments are used to explain each line is as follows:
#include <stdio.h>
int main () {
//This initializes the number to 1
int a = 1;
//This begins the loop
do {
//This prints the current number
printf("%d\n", a);
//This increments the number by 1
a = a + 1;
}
//The loop is repeated as long as the number is less than or equal to 10
while( a <= 10 );
return 0;
}
See attachment for the flowchart
Read more about loops at:
https://brainly.com/question/14592816
HELP NEEDED ASAP!!!
Early mixing systems had some severe limitations. Which of the following statements best describes one of those
limitations:
1. They could not fast forward.
2. They could not edit.
3. They could not play more than one track at a time.
4. They could not play in reverse.
<8□}□{●{●{《{¤□■♡¤■▪︎gusygydfig8f6r7t8t437r7fyfu
What is a conditional Statement that causes the program to change its course
Answer:
In computer science, conditional statements, conditional expressions and conditional constructs are features of a programming language, which perform different computations or actions depending on whether a programmer-specified boolean condition evaluates to true or false.
Explanation: