2012年2月29日 星期三

學習範例 1_1:變數的初始化及基本運用

簡單的加法運算 。


class Ex1_1 {
    public static void main(String[] args) {
        int x = 63;
int y = 37;
  int result = x + y;

System.out.println(x + "+" + y + "=" + result);
     }
}

執行結果。

No Response to "學習範例 1_1:變數的初始化及基本運用"

張貼留言