/* package whatever; // don't place package name! */ import java.util.*;import java.lang.*;import java.io.*; /* Name of the class has to be "Main" only if the class is public. */class forFun{ public static void main (String[] args) throws java.lang.Exception { double P=1000000.0; double r=0.07; System.out.println("欠一百萬"); int t=10; double A=P*Math.exp(r*t); System.out.println(t+"年後要還"+A); }}