public class Test { public static void main(String[] args){ long num = 0; for(int i =1;i if(i%2 != 0){ num = num i*i; } } System.out.println(num); }}运行结果为:166650