Enter 3 numbers from the user & make a function to print their average.
Java Basic Codesimport java.util.*;
public class Solutions {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int average = (a + b + c) / 3;
System.out.println(average);
}
}