返回列表 發帖

五則運算 (二)

本帖最後由 tonyh 於 2014-10-18 16:45 編輯
  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. }
複製代碼

  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 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 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 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 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 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 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

返回列表