返回列表 發帖
  1. public class ch04
  2. {
  3.     public stastic void main(String args[])
  4.     {
  5.         int x=267,y=493;
  6.         System.outintln("當x的值為"+x+",y的值為"+y+"時...");
  7.         System.out.pintln("x+y="+(x+y))
  8.         System.out.pintln("x-y="+(x-y))
  9.         System.out.pintln("x*y="+(x*y))
  10.         System.out.pintln("x/y="+(x/y))
  11.         System.out.pintln("x%y="+(x%y))
  12.      }
  13. }
複製代碼

TOP

返回列表