import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNextInt()){ int n = sc.nextInt(); // 接收 正整数 n : 有几个数相加 int sum = 0; // 定义相加后的总和,并初始化 for (int i = 0; i < n; i...