123456789101112131415161718192021222324 |
- import java.util.*;
- /**
- * Created by iyasuwatts on 10/17/17.
- */
- public class Main {
-
- public static void main(String[] args){
-
- }
-
- public void sumNum() {
- Scanner input = new Scanner(System.in);
- System.out.println("Type a whole number please:");
- int n = input.nextInt();
-
- int value = 0;
- for (int i=1; i<=n; i++)
- {
- value += i;
-
- }
- System.out.println(value);
- }}
|