注意:此页面搜索的是所有试题
                题目内容
                (国家开放大学面向对象程序设计)
            
            
                public static void main(String[] args) {
int x, y=0;
for(x=1; x<10; x++)
if(x%2==0) y+=x*x;
System.out.println("y="+y);
}
【A.】y=130
【B.】y=120
                    
                    
                    
                
                
                
            
        int x, y=0;
for(x=1; x<10; x++)
if(x%2==0) y+=x*x;
System.out.println("y="+y);
}
【A.】y=130
【B.】y=120
参考答案
 
                