123456789101112131415161718192021222324
  1. /**
  2. * Created by iyasuwatts on 10/17/17.
  3. */
  4. import java.util.Scanner;
  5. public class Main {
  6. public static int main(int input){
  7. int numberTotal = 0;
  8. //Scanner sc = new Scanner(System.in);
  9. //int input = sc.nextInt();
  10. for (int n = 0 ; n <= input ; n++){
  11. numberTotal += n;
  12. }
  13. return numberTotal;
  14. }
  15. }