Make a C++ program that will print the output on the screen using do while loop. (NOTE: There are no spaces in between rows)
#include <iostream>
using namespace std;
int main() {
int i = 1;
do {
cout << i;
++i;
}
while (i <= 5);
return 0;
}
Comments
Leave a comment