標題:
五則運算 (三)
[打印本頁]
作者:
tonyh
時間:
2014-10-18 17:10
標題:
五則運算 (三)
public class ch04
{
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));
}
}
複製代碼
作者:
劉得恩
時間:
2014-10-18 17:10
public class ch04
{
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));
}
}
複製代碼
作者:
周雍程
時間:
2014-10-18 17:10
public class ch04
{
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));
}
}
複製代碼
作者:
張彥承
時間:
2014-10-18 17:10
public class ch04
{
public static void main(String args[])
{ int x=5,int 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));
}
複製代碼
作者:
林宇翔
時間:
2014-10-18 17:10
public class ch03
{
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));
}
}
複製代碼
作者:
張郁庭
時間:
2014-10-18 17:14
public class ch04
{
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));
}
}
複製代碼
作者:
李允軒
時間:
2014-10-18 17:15
public class ch04
{
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));
}
}
複製代碼
作者:
張峻瑋
時間:
2014-10-22 19:58
public class ch04
{
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));
}
}
複製代碼
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://seed.istak.org.tw/)
Powered by Discuz! 7.2