0

Whats wrong with my code?

Im trying to write a code that calculate avrage of 10 grades and it keeps say "error" and i dont understand where is the problem https://code.sololearn.com/c6V4b888QRjr/?ref=app

1st Jan 2018, 2:52 PM
‎Shahar Ben Naim
‎Shahar Ben Naim - avatar
5 Respostas
+ 4
It doesn't show error if you input a value 10 times because you put Scanner.nextInt() function in a loop that executes 10 times
1st Jan 2018, 3:22 PM
Md. Nafis Ul Haque Shifat
Md. Nafis Ul Haque Shifat - avatar
+ 5
In the loop... System.out.println("Enter grade : "+grade);
1st Jan 2018, 5:39 PM
Md. Nafis Ul Haque Shifat
Md. Nafis Ul Haque Shifat - avatar
+ 4
Can't get your question.. please describe more
1st Jan 2018, 3:27 PM
Md. Nafis Ul Haque Shifat
Md. Nafis Ul Haque Shifat - avatar
+ 1
if i want to insert one at a time How i make it work?
1st Jan 2018, 3:25 PM
‎Shahar Ben Naim
‎Shahar Ben Naim - avatar
+ 1
i want that the program print "enter grade" every time before the user put in the grade sorry for my bad english
1st Jan 2018, 3:54 PM
‎Shahar Ben Naim
‎Shahar Ben Naim - avatar