public class ch03
{
public static void main(String args[])
{
int x=15,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));
System.out.println("x^y="+(x^y));
}
}
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://istak.org.tw/seed/) | Powered by Discuz! 7.2 |