ENG
RUS
Timus 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
salman sourav
How Can I stop to input the numbers ??
[1] // Problem
1001. Reverse Root
11 Mar 2015 09:17
In the problem set there is nothing told about how can user stop to input numbers.
ahmed ali mohamed
Re: How Can I stop to input the numbers ??
// Problem
1001. Reverse Root
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
© 2000–2025
Timus Online Judge Team
. All rights reserved.