I don't know if there is something wrong with my eclipse program, but nothing shows up on the console screen after I run this code(it runs without errors). All of the other codes are working perfectly, so there must be something wrong with this code that I can't find?
import java.util.Scanner; public class SimpleAverage { public static void main(String[] args) { Scanner input = new Scanner(System.in); int total = 0; int grade; int average; int counter= 0; while ( counter < 10 ) { grade = input.nextInt(); total = total + grade; counter = counter++; } average = total/10; System.out.println("This is the grade average" +average); } }