67 248
Assignments Done
99,3%
Successfully Done
In November 2018

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 order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions