package y20150806;
import java.util.Scanner;
public class y20150806n5 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn = new Scanner(System.in);
		System.out.println("пJ13");
		int a = scn.nextInt();
		int i;
		int sum=0;
			for(i=17;i<=1399;i=i+17){
			sum=sum+i;
			}
			System.out.println("sum="+sum);
		

	}
}
	
	
	

package y20150806;
import java.util.Scanner;
public class y20150806n5 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn = new Scanner(System.in);
		System.out.println("請輸入13");
		int a = scn.nextInt();
		int i;
		int sum=0;
			for(i=17;i<=1399;i=i+17){
			sum=sum+i;
			}
			System.out.println("sum="+sum);
		

	}
}
	
	
	

Update 20150806n5.java