import java.util.Scanner;
public class Main {
public static void main(String args[])
{ Scanner cin=new Scanner(System.in);
while(cin.hasNextInt())
{
int a=cin.nextInt();
int sum=0;
for(int i=0;i<=a;i++)
sum+=i;
System.out.println(sum+"\n\n");
}
}
}
时间: 2024-10-21 23:11:54