返回列表 發帖

五則運算 (二)

本帖最後由 tonyh 於 2020-6-19 20:24 編輯

  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. }
複製代碼

  1. public class Ch02
  2. {
  3.     public static void main(String arg[])
  4.     {
  5.         int a=5,b=3;
  6.         System.out.println(a+"+"+b+"="+(a+b));
  7.         System.out.println(a+"-"+b+"="+(a-b));
  8.         System.out.println(a+"*"+b+"="+(a*b));
  9.         System.out.println(a+"/"+b+"="+(a/b));
  10.         System.out.println(a+"%"+b+"="+(a%b));
  11.     }
  12. }
複製代碼

TOP

  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. }
複製代碼
Huang chenhao

TOP

  1. public class Skr
  2. {
  3.     public static void main(String gg[])
  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. }
複製代碼
hahahahahahahaha

TOP

  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. }
複製代碼

TOP

  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. }
複製代碼

TOP

  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

  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. }
複製代碼

TOP

  1. public class Ch01
  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. }
複製代碼

TOP

  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. }
複製代碼

TOP

  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. }
複製代碼

TOP

  1. import java.lang.System;
  2. public class Ch02
  3. {
  4.     public static void main(String args[])
  5.     {
  6.         int x=5,y=3;
  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. }
複製代碼

TOP

  1. public class Ch02
  2. {
  3.     public static void main(String ring[])
  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. }
複製代碼

TOP

返回列表