+ 1
I can't get the output of this(link below) code I need a solution.
5 Réponses
+ 1
SoloLearn doesn't support multiple input so your code will not work here.
At line 13 just write int c;
There is no use of Scanner since you are changing and assigning its value in next line.
You can put you a = S.nextInt() after the System.out.println("Enter A....")
because you code will print both
enter value of A
enter values of B
and then take the input
+ 1
int c=S.nextInt();
For c, you don't need to take input, since you calculating, result and putting it in c.
So Just put,
int c;
+ 1
Utkarsh Sharma
You can give multiple inputs. But just need to give all at once by space separating or in new line..
So that code works perfectly..
May be you not noticed it, so Just for the information telling you...,
+ 1
Thank you guys for your help
Now my code is working
0
Jayakrishna Okay! And Thanks... I hadn't noticed this.
But it still is inconvenient for my projects.