[Java 소스] 1부터 100까지 합계 (for문 사용) Program.java import java.util.Scanner; public class Program { static Scanner scanner = new Scanner(System.in); public static void main(String[] args){ exFor(); } private static void exFor() { int sum; int index; for(sum=0,index=1; index