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("請輸入計算機(jī)基礎(chǔ)的成績");
? ? ? ? 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("計算機(jī)基礎(chǔ)與JAVA之間的成績差");
? ? ? ? double avg = (score1 + score2 + score3) /3.8;
? ? ? ? System.out.println("平均數(shù)成績位" + avg);
? ? }
}