what is wrong in the program Redo it ( Java based)
NO SPAMING. ......❌❎
Attachments:
nitish8089:
what you want to do...
Answers
Answered by
0
You haven't added one line.
Scanner sc = new Scanner (System.in);
You have to add this line along with the void main line.
Maybe you could also remove the "int n" part which is in the brackets. I don't think it's necessary. Just declare and initialise the variables in another line. I hope you understand. :)
Scanner sc = new Scanner (System.in);
You have to add this line along with the void main line.
Maybe you could also remove the "int n" part which is in the brackets. I don't think it's necessary. Just declare and initialise the variables in another line. I hope you understand. :)
Similar questions
Social Sciences,
7 months ago
Physics,
7 months ago
Science,
7 months ago
Math,
1 year ago
Hindi,
1 year ago