注意:此页面搜索的是所有试题
public static void main(String[] args) {
int x, y=0;
for(x=1; x<5; x++) y+=x*x;
System.out.println("y="+y);
}

【A.】y=40
【B.】y=30

参考答案