Answer to Question #301194 in C++ for Chubby

Question #301194

Make a c++ program that will print the given output using do while loop.




Output:



5



6



7



8



9

1
Expert's answer
2022-02-22T12:13:29-0500
#include <iostream>
using namespace std;

int main() {
    int count = 5;

    do {
        cout << count << endl;
        count++;
    } while (count < 10);

    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog