標題:
五則運算 (二)
[打印本頁]
作者:
tonyh
時間:
2016-3-11 20:08
標題:
五則運算 (二)
本帖最後由 tonyh 於 2016-3-11 20:12 編輯
[attach]1560[/attach]
public class Ch03
{
public static void main(String args[])
{
System.out.println("5+3="+(5+3));
System.out.println("5-3="+(5-3));
System.out.println("5*3="+(5*3));
System.out.println("5/3="+(5/3));
System.out.println("5%3="+(5%3));
}
}
複製代碼
作者:
梁和雋
時間:
2016-3-11 20:13
public class Ch03
{
public static void main(String args[])
{
System.out.println("5+3="+(5+3));
System.out.println("5-3="+(5-3));
System.out.println("5*3="+(5*3));
System.out.println("5/3="+(5/3));
System.out.println("5%3="+(5%3));
}
}
複製代碼
作者:
沈子耕
時間:
2016-3-11 20:13
public class Ch03
{
public static void main(String args[])
{
System.out.println("5+3="+(5+3));
System.out.println("5-3="+(5-3));
System.out.println("5*3="+(5*3));
System.out.println("5/3="+(5/3));
System.out.println("5%3="+(5%3));
}
}
複製代碼
作者:
洪振庭
時間:
2016-3-11 20:14
public class Ch03
{
public static void main(String args[])
{
System.out.println("5+3"+(5+3));
System.out.println("5-3"+(5-3));
System.out.println("5*3"+(5*3));
System.out.println("5/3"+(5/3));
System.out.println("5%3"+(5%3));
}
}
複製代碼
作者:
陳思惟
時間:
2016-3-11 20:16
import java.lang.System; //由於編譯時套件java.lang會自動引入, 故可忽略
public class Ch03 //主類別
{
public static void main(String args[]) //主方法
{
System.out.println("5+3="+(5+3));
System.out.println("5-3="+(5-3));
System.out.println("5*3"+(5*3));
System.out.println("5/3="+(5/3));
System.out.print("5%3="+(5%3)); //運用System類別下out物件的println()方法
}
}
複製代碼
作者:
黃柏維
時間:
2016-3-11 20:16
import java.lang.System;
public class Ch03
{
public static void main(String args[])
{
System.out.println("2+3="+(2+3));
System.out.println("2-3="+(2-3));
System.out.println("2*3="+(2*3));
System.out.println("2/3="+(2/3));
System.out.println("2&3="+(2&3));
}
}
複製代碼
作者:
曾挺桂
時間:
2016-3-11 20:20
import java.lang.System;
public class Ch02
{
public static void main(String args[])
{
System.out.println("5+3");
System.out.println("5-3");
System.out.println("5*3");
System.out.println("5/3");
System.out.println("5%3");
}
}
複製代碼
作者:
黃璽安
時間:
2016-3-11 20:22
public class Ch03
{
public static void main(String args[])
{
System.out.println("5+3="+(5+3));
System.out.println("5-3="+(5-3));
System.out.println("5*3="+(5*3));
System.out.println("5/3="+(5/3));
System.out.println("5%3="+(5%3));
}
}
複製代碼
作者:
李知易
時間:
2016-3-11 20:26
import java.lang.System;
public class Ch02
{
public static void main (String args[])
{
System.out.println("5+3="+(5+3));
System.out.println("5-3="+(5-3));
System.out.println("5*3="+(5*3));
System.out.println("5/3="+(5/3));
System.out.println("5%3="+(5%3));
}
}
複製代碼
作者:
王翔
時間:
2016-3-17 19:48
import java.lang.System;
public class Ch03{
public static void main(String args[]){
System.out.println("5+3="+(5+3));
System.out.println("5-3="+(5-3));
System.out.println("5*3="+(5*3));
System.out.println("5/3="+(5/3));
System.out.println("5%3="+(5%3));
}
}
複製代碼
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://istak.org.tw/seed/)
Powered by Discuz! 7.2