標題:
五則運算 (二)
[打印本頁]
作者:
tonyh
時間:
2020-1-30 13:27
標題:
五則運算 (二)
完成如下畫面
本帖隱藏的內容需要回復才可以瀏覽
作者:
張宸翔
時間:
2020-1-30 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));
}
}
複製代碼
作者:
蘇宜貞
時間:
2020-1-30 13:46
本帖最後由 蘇宜貞 於 2020-1-30 13:47 編輯
public class Ch02
{
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));
}
}
複製代碼
作者:
黃煜城
時間:
2020-1-30 13:46
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));
}
}
複製代碼
作者:
蔡承翰
時間:
2020-1-30 13:46
public class Ch02
{
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.print("x%y="+(x%y));
}
}
複製代碼
作者:
蘇行一
時間:
2020-1-30 13:47
public class Ch02
{
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));
}
}
複製代碼
作者:
盧弘毅
時間:
2020-1-30 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));
}
}
複製代碼
作者:
何蕙妘
時間:
2020-1-30 13:49
本帖最後由 何蕙妘 於 2020-1-30 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));
}
}
複製代碼
作者:
楊秉樺
時間:
2020-1-30 13:52
public class Ch02
{
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));
}
}
複製代碼
作者:
劉家銘
時間:
2020-1-30 13:52
public class Ch02
{
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));
}
}
複製代碼
作者:
沙芃妘
時間:
2020-1-30 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));
}
}
複製代碼
作者:
許婷芳
時間:
2020-1-30 14:11
public class AAA
{
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));
}
}
複製代碼
作者:
陳梓瑜
時間:
2020-1-30 14:12
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));
}
}
複製代碼
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://istak.org.tw/seed/)
Powered by Discuz! 7.2