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
1
Expert's answer
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS