64 506
Assignments Done
99,1%
Successfully Done
In September 2018

Answer to Question #17374 in C++ for patrick

Question #17374
write programm using while to display number from 0 to 5
Expert's answer
#include <iostream>

#include<conio.h>

using namespace std;

int main()

{

int n = 0;

do{

cout << n << endl;

n++;

}while (n <= 5);

_getch();

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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions