Answer to Question #17374 in C++ for patrick

Question #17374
write programm using while to display number from 0 to 5
1
Expert's answer
2012-10-26T11:13:24-0400
#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 the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS