package m.j.j; import java.util.Scanner; public class Abb { public static void main(String[] args) { int money,year; double rate,sum; Scanner scan = new Scanner(System.in); money = scan.nextInt(); year = scan.nextInt(); rate = scan.nextDouble(); sum = money * Math.pow(1 + rate, year); System.out.println(sum); } }
计算银行存款的本息
最新推荐文章于 2024-09-04 20:55:34 发布