/**
*@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);
}
}
02-28
4882
11-15
5148
12-29
3896
10-18
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交