0
Please find error in my short code... I am a newbie 😂
Why is this code not working? Please Help https://code.sololearn.com/c6Xu7KEeX2f0/?ref=app Edit : Problem Solved 👍
6 odpowiedzi
+ 6
It is nextLine() not nextline().
One error,fix it and it works.
+ 5
Ravi Prakash Dixit the code playground works differently. You have to input all the data before running your code because the sololearn server executes everything at once.
So make the change mentioned by Ketan and give your input before running your code.
+ 2
Here are some of them already answered.
https://www.sololearn.com/discuss/945510/?ref=app
https://www.sololearn.com/discuss/404485/?ref=app
https://www.sololearn.com/discuss/864775/?ref=app
https://www.sololearn.com/discuss/967457/?ref=app
https://www.sololearn.com/discuss/1407007/?ref=app
https://www.sololearn.com/discuss/1315621/?ref=app
0
Ketan, thanks for engaging in the problem!!
I guess, its not working correctly..
I want the program to ask first and then u enter ur food and finally it should print the last line!!
But, its not doing in this manner..??!
0
Avinesh , that doesn't really serve the purpose of whole program however small!!
When the user doesn't know the question, how can he answer in advance ??
0
Avinesh okay 👌