package com.company;
import java.util.Scanner;
public class demo02 {
public? static? void main(String[] args){
Scanner scanner =new Scanner((System.in));? // 定義一個(gè)鍵盤(pán)掃描盤(pán)
? ? ? ? System.out.println("請(qǐng)輸入計(jì)算機(jī)基礎(chǔ)的成績(jī)");
? ? ? ? int score1 = scanner.nextInt();
? ? ? ? System.out.println("請(qǐng)輸入Java的成績(jī):");
? ? ? ? int score2 = scanner.nextInt();
? ? ? ? System.out.println("請(qǐng)輸入mysql的成績(jī)");
? ? ? ? int score3 = scanner.nextInt();
? ? ? ? int different =score1 - score2;
? ? ? ? System.out.println("計(jì)算機(jī)基礎(chǔ)與JAVA之間的成績(jī)差");
? ? ? ? double avg = (score1 + score2 + score3) /3.8;
? ? ? ? System.out.println("平均數(shù)成績(jī)位" + avg);
? ? }
}