Answer to Question #178716 in C++ for paul

Question #178716

Make a C++ program that will print the output on the screen using do while loop. (NOTE: There are no spaces in between rows)

1
Expert's answer
2021-04-06T15:58:16-0400
#include <iostream>

using namespace std;

int main() {
    int i = 1;
    do {
        cout << i;
        ++i;
    }
    while (i <= 5);
   
    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
APPROVED BY CLIENTS