返回列表 發帖
本帖最後由 沈子耕 於 2016-3-11 20:36 編輯
  1. public class Ch04
  2. {
  3.     public static void main(String args[])
  4.     {   
  5.         int x=5, y=3;
  6.         System.out.println("當x為"+x+",y為"+y+"時");
  7.         System.out.println("x+y="+(x+y));
  8.         System.out.println("x-y="+(x-y));
  9.         System.out.println("x*y="+(x*y));
  10.         System.out.println("x/y="+(x/y));
  11.         System.out.println("x%y="+(x%y));
  12.     }
  13. }
  14. /*版權所有,請注重智慧財產權 */
複製代碼
ABCDEFGHIJKLMNOPQRSTUVWXYZ

TOP

返回列表