123456789101112131415161718192021 |
- /**
- * Created by iyasuwatts on 10/17/17.
- */
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args){
- Scanner in = new Scanner(System.in);
- System.out.print("Enter a Number:");
- String y = in.next();
-
- int n = Integer.parseInt(y);
- int sumOfN;
-
- for (int i = 1; i <= n; i++){
- sumOfN =+ i;
-
- }
-
- }
- }
|