答案一样,这算对还是错,能提交的...
int x=1;
int sum=0;
while(x<=30)
{
sum +=(x/2);
x++;
}
console.write("奇数的和:"+sum);
int x=1;
int sum=0;
while(x<=30)
{
sum +=(x/2);
x++;
}
console.write("奇数的和:"+sum);
2016-03-17