0
I want compiler ask me for every user input
Scanner sc= new Scanner (System.in) Int a= sc.nextInt(); System.out.println("enter 1 number"); Int b= sc.nextInt(); System.out.println("enter second number"); // When ask 1 time then compiler should ask only for a not for b Please help
7 Respuestas
+ 5
The line "system...." Would be before the line "int...."
Now I think that u can take input for a and b both
+ 1
Ok
+ 1
Thanks you
0
The code is correct.. But, your doubt is not clear anymore..
If you are bothering about giving input in sololearn, you have to give all the inputs at a time whichever you want to give..
0
Ok I want from compiler to ask me seperate for each user input
0
Is it possible
0
It's not possible in sololearn.. You have to give all inputs at a time