1234567891011121314151617181920212223
  1. import java.util.*;
  2. /**
  3. * Created by iyasuwatts on 10/17/17.
  4. */
  5. public class Main {
  6. public static void main(String[] args){
  7. }
  8. public void sumNums() {
  9. Scanner sn = new Scanner(System.in);
  10. int num = sn.nextInt();
  11. int sum = 0;
  12. for(int i = 1; i<=num; i++) {
  13. sum += i;
  14. }
  15. System.out.println(sum);
  16. }
  17. }