標題:
五則運算 (二)
[打印本頁]
作者:
tonyh
時間:
2020-6-19 20:18
標題:
五則運算 (二)
本帖最後由 tonyh 於 2020-6-19 20:24 編輯
public class Ch02
{
public static void main(String args[])
{
int 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));
}
}
複製代碼
作者:
董宸佑
時間:
2020-6-19 20:26
public class Ch02
{
public static void main(String arg[])
{
int a=5,b=3;
System.out.println(a+"+"+b+"="+(a+b));
System.out.println(a+"-"+b+"="+(a-b));
System.out.println(a+"*"+b+"="+(a*b));
System.out.println(a+"/"+b+"="+(a/b));
System.out.println(a+"%"+b+"="+(a%b));
}
}
複製代碼
作者:
黃辰昊
時間:
2020-6-19 20:27
public class Ch02
{
public static void main(String args[])
{
int 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));
}
}
複製代碼
作者:
黃宥華
時間:
2020-6-19 20:28
public class Skr
{
public static void main(String gg[])
{
int 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));
}
}
複製代碼
作者:
蔡忻霓
時間:
2020-6-19 20:29
public class Ch02
{
public static void main(String args[])
{
int 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));
}
}
複製代碼
作者:
孫嘉駿
時間:
2020-6-19 20:29
public class Ch02
{
public static void main(String args[])
{
int 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));
}
}
複製代碼
作者:
李宇澤
時間:
2020-6-19 20:30
public class Ch02
{
public static void main(String args[])
{
int 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));
}
}
複製代碼
作者:
夏子涵
時間:
2020-6-19 20:31
public class Ch02
{
public static void main(String args[])
{
int 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));
}
}
複製代碼
作者:
林政瑜
時間:
2020-6-19 20:32
public class Ch01
{
public static void main(String args[])
{
int 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));
}
}
複製代碼
作者:
陳宥穎
時間:
2020-6-19 20:34
public class Ch02
{
public static void main(String args[])
{
int 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));
}
}
複製代碼
作者:
沈子晏
時間:
2020-7-3 18:55
public class Ch02
{
public static void main(String args[])
{
int 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));
}
}
複製代碼
作者:
劉愷鈞
時間:
2020-7-14 20:47
import java.lang.System;
public class Ch02
{
public static void main(String args[])
{
int 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));
}
}
複製代碼
作者:
黃柏叡
時間:
2020-7-14 20:48
public class Ch02
{
public static void main(String ring[])
{
int 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));
}
}
複製代碼
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://seed.istak.org.tw/)
Powered by Discuz! 7.2