import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
double a,b,sum=0;
a=sc.nextDouble();
b=sc.nextDouble();
for(int i=1;i<=a;i++)
{
sum=b*0.0225+b;
b=sum;
}
System.out.printf("%.6f",sum);
}
}
ZZULIOJ 1016: 银行利率 JAVA
最新推荐文章于 2024-09-01 15:30:33 发布