Answer to Question #17374 in C++ for patrick
write programm using while to display number from 0 to 5
1
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!
Learn more about our help with Assignments:
C++
Comments
Leave a comment