덧셈예제 썸네일형 리스트형 [Java 연습문제] 중첩된 덧셈(for문과 static method 연습) 문제 1 + (1+2) + ... + (1+2+3+4+5+6+7+8+9+10) 을 계산하는 프로그램. 코드 package tutorials.practices; // 1 + (1+2) + ... + (1+2+3+4+5+6+7+8+9+10) 을 계산하는 프로그램. public class Summation_1to10 { public static void main(String[] args) { int section_result = 0; int whole_result = 0; int limit; limit = 10; for(int i = 1; i 더보기 이전 1 다음