+ 1

Why Third consecutive input is not working ?

I use nextLine() to take input as string after immediate nextDouble() but it's not working.. why? need deep explanation.. how to solve it? https://code.sololearn.com/c3Nk5DT9YkHA/?ref=app

14th May 2021, 4:12 PM
Ratnapal Shende
Ratnapal Shende - avatar
8 odpowiedzi
+ 3
Rankush still string output is empty ... read the question again( consecutive inputs ) input.close() is apart away from this ...
15th May 2021, 5:53 PM
Ratnapal Shende
Ratnapal Shende - avatar
+ 1
https://code.sololearn.com/cTM6lki5P9Co/?ref=app //Don't know why but getting output in this
14th May 2021, 4:37 PM
Atul [Inactive]
+ 1
2147483647-->string 2,147,483,647-->int 1.79769313486231570e--->Double //Storage capacity of variables
14th May 2021, 4:40 PM
Atul [Inactive]
+ 1
https://code.sololearn.com/cYWzT0Si3l5K/?ref=app //Getting different outputs in all. I think so it is because of the capacity of the variables. Not sure
14th May 2021, 4:43 PM
Atul [Inactive]
+ 1
Input values like this --> 10 10.0 String I think this limitation is most probably because of the need to input all the values at the same time.
14th May 2021, 4:54 PM
Soumik
Soumik - avatar
+ 1
Soumik Can you please elaborate your answer?
14th May 2021, 5:01 PM
Atul [Inactive]
- 1
Ratnapal Shende your problem is solved.. here you did mistake- input.Close(); // delete this line and check and run your code Check out this code.. https://code.sololearn.com/cBX6UgXORerX/?ref=app
14th May 2021, 6:52 PM
born2code
born2code - avatar
- 1
Ratnapal Shende bro.. ENTER INPUT LIKE THIS -- 10 45.5 HHDBDBD
15th May 2021, 6:11 PM
born2code
born2code - avatar