class MyAG107 {
public static void main(String[] args){
int x; // x為int型態的變數
int y; // y為int型態的變數
x = 32.5;
y = 42.6;
System.out.println("x的值為" + x + "。");
System.out.println("y的值為" + y + "。");
System.out.println("x+y的和為" + (x + y) + "。");
System.out.println("x*y的積為" + (x * y) + "。");
System.out.println("x及y的平均值為" + (x + y) / 2 + "。");
}
}
仔細看,用力看,幾個編譯憤怒?
No Response to "jAG107"
張貼留言