import java.util.*;
public class FindAverage {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the first number");
double x = sc.nextDouble();
System.out.println("Enter the Second number");
double y = sc.nextDouble();
System.out.println("Enter the Third number");
double z = sc.nextDouble();
System.out.println("The average of three no is : " + average(x, y, z));
}
//Defining Method
public static double average(double a, double b, double c) {
double avg = (a+b+c)/3;
return avg;
}
}