返回列表 發帖

五則運算 (二)

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

  1. import java.lang.System;
  2. public class Ch03
  3. {
  4.     public static void main(String args[])
  5.     {
  6.          System.out.println("5+3="+(5+3));
  7.          System.out.println("5-3="+(5-3));
  8.          System.out.println("5*3="+(5*3));
  9.          System.out.println("5/3="+(5/3));
  10.          System.out.println("5%3="+(5%3));
  11.     }
  12. }[code]
複製代碼
[/code]

TOP

  1. public class Ch02
  2. {

  3.     public static void main(String args[])
  4.     {

  5.         System.out.println("5+3)"+(5+3));
  6.         System.out.println("5-3)"+(5-3));
  7.         System.out.println("5*3)"+(5*3));
  8.         System.out.println("5/3)"+(5/3));
  9.         System.out.println("5%3)"+(5%3));
  10.     }
  11. }
複製代碼

TOP

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

TOP

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

TOP

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

TOP

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

TOP

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

TOP

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

TOP

  1. pulblic class Ch03
  2. {
  3.    public static void main(String args[])
  4.    {
  5.        System.out.printin("5+3="+(5+3));
  6.        System.out.printin("5-3="+(5-3));
  7.        System.out.printin("5*3="+(5*3));
  8.        System.out.printin("5/3="+(5/3));
  9.        System.out.printin("5%3="+(5%3));
  10.    }
  11. }
複製代碼

TOP

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

TOP

  1. import java.lang.System;
  2. public class Ch03
  3. {
  4.     public static void main(String args[])
  5.     {
  6.          System.out.println("5+3="+(5+3));
  7.          System.out.println("5-3="+(5-3));
  8.          System.out.println("5*3="+(5*3));
  9.          System.out.println("5/3="+(5/3));
  10.          System.out.println("5%3="+(5%3));
  11.     }
  12. }
複製代碼

TOP

返回列表