ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1001. Reverse Root

How Can I stop to input the numbers ??
Posted by salman sourav 11 Mar 2015 09:17
In the problem set there is nothing told about how can user stop to input numbers.
Re: How Can I stop to input the numbers ??
Posted by ahmed ali mohamed 17 Mar 2015 22:24
i think you should use while(cin>> ){ }
getting input from user will end when he insert invalid value like characters