/**
*@author com.whocares183
*@version 1.0
*/
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int capital = scan.nextInt();
int years = scan.nextInt();
double rate = scan.nextDouble();
double s;
s = capital*Math.pow(1 + rate, years) - capital;
System.out.printf("s=%.2f", s);
}
}
7-1 计算存款利息(pta)
最新推荐文章于 2023-12-18 00:00:23 发布