/**
It can't loop for some reason and it doesn't even divided the answer by 40
Help!
*/
import java.util.Scanner;
public class AverageScores{
public static void main(String [] args){
Scanner sc = new Scanner(System.in);
double N;
double Sum = 0;
double x = 1;
System.out.println("Input the Exam Result");
N = sc.nextDouble();
while (x<=40){
{
Sum = Sum + N;
x++;
}
}
double average = ++Sum / 40;
System.out.println("The Average Exam Score of 40 Students is "+average);
}
}