本帖最後由 古蕾娜 於 2019-7-1 13:41 編輯
- public class Ch03
- {
- public static void main(String args[])
- {
- int x=4,y=7;
- System.out.println("When x equals to "+x+",y equals to "+y+"...");
- System.out.println("x+y="+(x+y));
- System.out.println("x-y="+(x-y));
- System.out.println("x*y="+(x*y));
- System.out.println("x/y="+(x/y));
- System.out.println("x%y="+(x%y));
- }
- }
複製代碼 |