参考代码:
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int x = scanner.nextInt(); int n = scanner.nextInt(); double res = x * Math.pow(1 + 0.001, n); System.out.printf("%.4f", res); } }
0.0分
6 人评分