1234567891011121314151617181920212223 |
- import java.util.*;
- /**
- * Created by iyasuwatts on 10/17/17.
- */
- public class Main {
- public static void main(String[] args){
- }
-
- public int numberAdding(int input){
- //Scanner in = new Scanner(System.in);
- //System.out.println("Please enter an integer greater than zero.");
- //input = in.nextInt();
- int answer = 0;
-
-
- for(int i = 0; i <= input; i++){
- answer = answer + i;
-
- }
- return answer;
- }
- }
|