Answer to Question #21006 in C++ for jawad wardak
write a program that continues to ask the user to enter any number other 5 untik the user enters the number 5
1
2012-12-24T09:59:30-0500
#include <iostream>
#include <conio.h>
using namespace std;
//main function
int main()
{
int number;
cout<<"Enter number: ";
cin>>number;
while(number!=5){
cout<<"Enter number: ";
cin>>number;
}
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