/**************************************************
*	Eddie Corrales			3/25/07	  *
*	Prof. Bam 		        ED336Sum1 *
*	Project Java				  *
*                                                 *
***************************************************/

import java.util.Scanner;

public class ED336Sum1
{

public static void main(String[] args)
	{

	// declare variables
	int num;
	int begin = 0;

	// Create scanner
	Scanner Empire = new Scanner (System.in);


	System.out.println("Enter A positive number NOW!");
	num = Empire.nextInt();
	// tell whether it is a neg num
	while (num <= 0)
	{
	System.out.println("Yo thats not a positive number. Enter one now!!!");
	Empire.nextInt();

	}

	// calulate the problem
	for(int temp =0; temp<=num; temp++)
			{
				begin = begin + temp;

			  }
			  // display output
	System.out.println("The sum is: " + begin);


	}
}
