123456789101112131415161718192021
  1. /**
  2. * Created by iyasuwatts on 10/17/17.
  3. */
  4. import java.util.Scanner;
  5. public class Main {
  6. public static void main(String[] args){
  7. Scanner in = new Scanner(System.in);
  8. System.out.print("Enter a Number:");
  9. String y = in.next();
  10. int n = Integer.parseInt(y);
  11. int sumOfN;
  12. for (int i = 1; i <= n; i++){
  13. sumOfN =+ i;
  14. }
  15. }
  16. }