package java实训;
public class SJ5 {
public static void main(String[] args) {
int A=10;
int B=3;
double sum =400;
double xf1 = 400;
for(int i=1;i<=A;i++) {
xf1=xf1*1.05;
for(;i<=B;) {
sum+=xf1;
break;
}
}
System.out.println("第十年后的学费为: "+xf1 );
System.out.println("四年总学费为: "+sum);
}
}