///Scott Ward 336 Sum of Numbers Ques. 1////




import java.util.Scanner;

public class Sum
	{
public static void main(String[] args)
		{
			
	//1.Create Scanner class
	Scanner entry = new Scanner(System.in);

	//2.Intiate and create variables
	int Val;
	int Inc = 0;

	//3.Prompt user for nonzero Positive integer
	System.out.println("Please enter a nonzero positive integer:");
	Val = entry.nextInt();
	while (Val <= 0)
		{
		System.out.println("Hey kiddo, that's not a nonzero positive integer! Try it again:");
		entry.nextInt();
		}

	//4. Calculate sum
	for (int z = 0; z<=Val; z++)
			{
			Inc = Inc + z;
			}
			
	//5. End program with numeric total
		System.out.println(Inc);

	}
		}