我的循环问题似乎正在运行并且没有停止我没有让循环停止它继续运行并且不会停止
rate=interest/100;
double monthly_rate=rate/period;
double n=period*length;
payment = (principal * Math.pow((1 + monthly_rate), n)) / n;
System.out.printf("Test acoount amount is %.2f",payment);
for(double i=payment; n<=n; n++){
System.out.println(i+ "" +(payment-i));
}