返回列表 發帖
  1. public class Ch02
  2. {
  3.     public static void main(String args[])
  4.     {
  5.          int x=5, y=3;
  6.          System.out.println(x+" + "+y+" = "+(x+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.     }
  12. }
複製代碼
李宇澤Oscar

TOP

返回列表