+ 1

Can you help me fix this java error in program?[Solved]

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

3rd Mar 2021, 8:25 AM
ltsRoy
ltsRoy - avatar
2 Respostas
+ 4
You can use a new line instead of adding prompt message in Scanner object. Scanner sc = new Scanner(System.in); System. out.println("Enter a no"); int n = sc.nextInt();
3rd Mar 2021, 11:10 AM
Simba
Simba - avatar
+ 2
Simba Thank you very much :-)
3rd Mar 2021, 4:05 PM
ltsRoy
ltsRoy - avatar