class VarDemo
{
public static void main(String[] args)
{
int math=80, chn=90; //同時宣告二個變數,並指定值
int total, average; //宣告兩個變數
total = math + chn; //計算總分
average = total / 2; //計算平均
//將計算的結果顯示在螢幕上
System.out.println(“總分是:”+ total + “平均是:” + average);
}
}
Lucky Club Casino Site & App Review + 150 Spins
回覆刪除Lucky Club Casino is part of the Evo Group and Evo Group, with their aim to create world-class online gambling and gaming services. Rating: luckyclub.live 5 · Review by LuckyClub.live