package com.company;
import java.util.Scanner;
public class demo02 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println(“请输入计算机基础的成绩:”);
int score1 = scanner.nextInt();
System.out.println("请输入JAVA的成绩");
int score2 = scanner.nextInt();
System.out.println("请输入mysql的成绩:");
int score3 = scanner.nextInt();
int different = score1 - score2 ;
System.out.println("计算机基础与JAVA之间的成绩差" + different );
double avg = (score1 + score2 +score3) /3.0;
System.out.println("平均数成绩位: " + avg);
}