public class xxx{
public static void main( String[] args){
scanner input = new scanner( System.in);
System.out.println("王的成绩:");
int num1 = input.nextInt();
System.out.println("李的成绩:");
int num2 = input.nextInt();
System.out.println("张的成绩:");
int num3 = input.nextInt();
int cha ;
int avg;
System.out.println("-----------------");
System.out.println("wang\tli\tzhang")
System.out.printlnwang(num1+"\t"+num2+"\t"+num3+"\t");
System.out.println("--------");
cha = num2-num3;
System.out.println("王和李的差"+cha);
avg = (num1+num2+num3)/3;
System.out.println("平均分"+avg);
}
}