标签:ar c print public class as string system
public class WhileDemo {
/*求1-10的和*/
public static void main (String[] args ){
int x = 1 ;
int sum = 0;
while(x<11){
sum=sum+x;
x++;
}
System.out.println("sum="+sum);
}
}
标签:ar c print public class as string system
原文地址:http://www.cnblogs.com/xingbaoliang/p/3915847.html