標題:
五則運算 (二)
[打印本頁]
作者:
tonyh
時間:
2019-7-1 13:30
標題:
五則運算 (二)
完成如下畫面
本帖隱藏的內容需要回復才可以瀏覽
作者:
古蕾娜
時間:
2019-7-1 13:30
本帖最後由 古蕾娜 於 2019-7-1 13:41 編輯
public class Ch03
{
public static void main(String args[])
{
int x=4,y=7;
System.out.println("When x equals to "+x+",y equals to "+y+"...");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
}
}
複製代碼
作者:
蔡杰恩
時間:
2019-7-1 13:45
public class Ch03
{
public static void main(String args[])
{
int x=5,y=3;
System.out.println("當x的值為"+x+",y的值為"+y+"時...");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
}
}
複製代碼
作者:
陳致翰
時間:
2019-7-1 13:46
public class Ch03
{
public static void main(String args[])
{
int x = 4 , y =87 ;
System.out.println("當x的值為"+x+",y的值為"+y+"時...");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
}
}
複製代碼
作者:
劉欽文
時間:
2019-7-1 13:47
public class Ch03
{
public static void main(String args[])
{
int x=5,y=3;
System.out.println("當x的值為"+x+",y的值為"+y+"時...");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
}
}
複製代碼
作者:
張啟廣
時間:
2019-7-1 13:48
public class Ch03
{
public static void main(String args[])
{
int x=5,y=3;
System.out.println("當x值為"+x+",y值為"+y+"時...");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
}
}
複製代碼
作者:
林宥杰
時間:
2019-7-1 13:48
public class Ch03
{
public static void main(String args[])
{
int x=5, y=3;
System.out.println("當X的值為"+x+",y的值為"+y+"時...");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
複製代碼
回復
1#
tonyh
作者:
李佳諭
時間:
2019-7-1 13:48
public class Ch03
{
public static void main(String args[])
{
int x=5, y=3;
System.out.println("當x的值為"+x+",y的值為"+y+"時...");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
}
}
複製代碼
作者:
李從赫
時間:
2019-7-1 13:49
public class Ch03
{
public static void main (String args[])
{
int x=5,y=3;
System.out.println("當x的值為"+x+",當y的值為"+y+"時");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%+y="+(x%y));
}
}
複製代碼
作者:
陳璽安
時間:
2019-7-1 13:49
public class Ch03
{
public static void main(String args[])
{
int x=5,y=3;
System.out.println("當x的值為"+x+",y的值為"+y+"時...");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
}
}
複製代碼
作者:
古昇暘
時間:
2019-7-1 13:49
public class Cl03
{
public static void main(String args[])
{
int x=5, y=3;
System.out.println("When x's value is "+x+" and y's value is "+y);
System.out.println("x+y= "+(x+y));
System.out.println("x-y= "+(x-y));
System.out.println("x*y ="+(x*y));
System.out.println("x/y= "+(x/y));
System.out.println("x%y= "+(x%y));
}
複製代碼
作者:
宋威廷
時間:
2019-7-1 13:49
public class CH03
{
public static void main(String args[])
{
int x=5,y=3;
System.out.println("當X的值為"+x+",Y的值為"+y+"時...");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
}
}
複製代碼
作者:
李承洋
時間:
2019-7-1 13:49
public class Ch03
{
public static void main(String args[])
{
int x=94,y=87;
System.out.println("當x的值為"+x+",y的值為"+y+"時...");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
}
}
複製代碼
作者:
葉子于
時間:
2019-7-1 13:50
{
public static void main(String args[])
{
int x=5, y=3;
System.out.println("當x的質為"+x+",y的質為"+y+"時...");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
}
}
複製代碼
作者:
賴駿榮
時間:
2019-7-1 13:50
public class ch03
{
public static void main(String args[])
{
int x=5,y=3;
System.out.println("當x值為"+x+",當y值為"+y+"時...");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
}
}
複製代碼
回復
1#
tonyh
作者:
王煦
時間:
2019-7-1 13:52
public class Ch04
{
public static void main(String args[])
{
int x=9846,y=4896,z=9487;
System.out.println("當x的值為"+x+",y的值為"+y+",z的值為"+z+"時...");
System.out.println("x+y+z="+(x+y+z));
System.out.println("x-y-z="+(x-y-z));
System.out.println("x*y*z="+(x*y*z));
System.out.println("x/y/z="+(x/y/z));
System.out.println("x%y%z="+(x%y%z));
}
}
複製代碼
作者:
陳智鈞
時間:
2019-7-1 13:52
public class Ch03
{
public static void main(String args[])
{
int x=5,y=3;
System.out.println("當x的值為"+x+",y的值為"+y+"時...");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
}
}
複製代碼
作者:
吳庭慈
時間:
2019-7-1 13:53
public class Ch03
{
public static void main(String args[])
{
int x=5,y=3;
System.out.println("當x的值為"+x+",y的值為"+y+"時...");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
}
}
複製代碼
作者:
蔡杰希
時間:
2019-7-1 13:53
public class Ch04
{
public static void main(String args[])
{
int x=5,y=3;
System.out.println("當X的值為"+x+",y的值為"+y+"時....");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
}
}
複製代碼
作者:
謝宗佑
時間:
2019-7-1 13:55
public class CH03
{
public static void main(String args[])
{
int x=5,y=3;
System.out.println("當X的值為"+x+",y值為"+y+"時...");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
}
}
複製代碼
作者:
李沛儒
時間:
2019-7-1 13:55
public class Ch04
{
public static void main(String args[])
{
int x=571428, y=428571;
System.out.println("當x的值為"+x+",y的值為"+y+"時");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
}
}
複製代碼
作者:
李沛儒
時間:
2019-7-1 13:55
public class Ch04
{
public static void main(String args[])
{
int x=571428, y=428571;
System.out.println("當x的值為"+x+",y的值為"+y+"時");
System.out.println("x+y="+(x+y));
System.out.println("x-y="+(x-y));
System.out.println("x*y="+(x*y));
System.out.println("x/y="+(x/y));
System.out.println("x%y="+(x%y));
}
}
複製代碼
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://istak.org.tw/seed/)
Powered by Discuz! 7.2