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 li zhang")
System.out.printlnwang(num1+" "+num2+" "+num3+" ");
System.out.println("--------");
cha = num2-num3;
System.out.println("王和李的差"+cha);
avg = (num1+num2+num3)/3;
System.out.println("平均分"+avg);
}
}