+ 1
Can you help me fix this java error in program?[Solved]
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();
+ 2
Simba Thank you very much :-)