Answer to Question #21006 in C++ for jawad wardak
Question #21006
write a program that continues to ask the user to enter any number other 5 untik the user enters the number 5
Expert's answer
#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 orderand get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment