[問題]一段基本的程式碼 一直跑不出來
一直找不到問題在哪 是空格嗎?
我是程式新手 問題太蠢的話請大家包涵了...
e感謝!!
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 is:"+total+"average is"+average);
}
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.245.67.4
→
05/12 10:47, , 1F
05/12 10:47, 1F
→
05/12 10:53, , 2F
05/12 10:53, 2F
推
05/12 12:21, , 3F
05/12 12:21, 3F