標題:
五則運算 (三)
[打印本頁]
作者:
tonyh
時間:
2016-3-11 20:17
標題:
五則運算 (三)
本帖最後由 tonyh 於 2016-3-11 20:36 編輯
[attach]1561[/attach]
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));
}
}
複製代碼
作者:
沈子耕
時間:
2016-3-11 20:23
本帖最後由 沈子耕 於 2016-3-11 20:36 編輯
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));
}
}
/*版權所有,請注重智慧財產權 */
複製代碼
作者:
陳思惟
時間:
2016-3-11 20:30
public class Ch04
{
public static void main(String args[])
{
int x=5, y=3;
System.out.println("當x為5,y為3時");
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));
}
}
複製代碼
作者:
梁和雋
時間:
2016-3-11 20:31
public class Ch04
{
public static void main(String args[])
{
int x=5, y=3;
System.out.println("當x為5,y為3時");
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));
}
}
複製代碼
作者:
曾挺桂
時間:
2016-3-11 20:31
本帖最後由 曾挺桂 於 2016-3-11 20:33 編輯
public class Ch03.1415
{
public static void main(String args[])
{
int x=5, y=3;
System.out.println("當x為5,y為3時");
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));
}
}
複製代碼
作者:
洪振庭
時間:
2016-3-11 20:34
public class Ch04
{
public static void main(String args[])
{
int x=5,y=3;
System.out.println("當x的值5,"+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));
}
}
複製代碼
作者:
黃柏維
時間:
2016-3-11 20:35
import java.lang.System;
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));
}
}
複製代碼
作者:
李知易
時間:
2016-3-11 20:36
import java.lang.System;
public class Ch03
{ int x=5, y=3;
public static void main (String args[])
{
System.out.println("當的值為5,y的值為3時...");
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));
}
}
}
複製代碼
作者:
黃璽安
時間:
2016-3-11 20:38
public class Ch04
{
public static void main(String args[])
{
int x=5,y=3;
System.out.println("當x為5,y為3時...");
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));
}
}
複製代碼
作者:
王翔
時間:
2016-3-17 20:00
import java.lang.System;
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));
}
}
複製代碼
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://seed.istak.org.tw/)
Powered by Discuz! 7.2