序列求和 问题描述 求1+2+3+…+n的值。 输⼊格式 输⼊包括⼀个整数n。 输出格式 输出⼀⾏,包括⼀个整数,表示1+2+3+…+n的值。 样例输⼊ 4 样例输出 10 样例输⼊ 100 import java.util.Scanner; public class begin2 { //序列求和 public static void main(String[] args