1234567891011121314151617181920
  1. import java.util.Scanner;
  2. /**
  3. * Created by iyasuwatts on 10/17/17.
  4. */
  5. //Elliott Stansbury edit
  6. public class Main {
  7. public static void main(String[] args){
  8. Scanner reader = new Scanner(System.in); // Reading from System.in
  9. System.out.println("Enter a number: ");
  10. int n = reader.nextInt();
  11. int Sum = n * (n+1)/2;
  12. System.out.println(Sum);
  13. }
  14. }