0

This code is running perfectly in CMD but not in SoloLearn's platform. Why is that so? Can anyone please explain it?

https://code.sololearn.com/cQKxk1md3OP9/?ref=app

1st Sep 2019, 1:27 PM
Chetali Shah
Chetali Shah - avatar
3 Answers
+ 1
You use 2 different scanner, but solo can give only 1 order to input.
1st Sep 2019, 2:34 PM
id001x
id001x - avatar
+ 1
you can test it this way: Scanner s=new Scanner("1 1"); //System.in);
1st Sep 2019, 5:41 PM
zemiak
+ 1
Thank you
1st Sep 2019, 5:59 PM
Chetali Shah
Chetali Shah - avatar