public class Main
{
public static void main(String[] args)
{
int sum = 0;
// Use a while loop to calculate the sum of 1 to 1000
System.out.println(sum);
}
}
添加回答
举报
0/150
提交
取消