63 063
Assignments Done
99,1%
Successfully Done
In July 2018

Answer to Question #29539 in C++ for malik

Question #29539
write a program to asks the user enter a serves of numbers when number enter zero the loop terminates
Expert's answer

//main function
int main()
{
int number;//input number
printf("Enter number: ");//show enter number
scanf("%d",&number);//read number
while(number!=0){//exit from loop it number is 0
printf("Enter number: ");//show enter number
scanf("%d",&number);//read number
}
return 0;//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