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=0;
do{
cout<<"i = "<<i<<"\n";
i++;
}while(i<5);
return 0;
}
Comments
Leave a comment