import java.util.Scanner;
public class Main{
public static void main(String[] args){
double sum=0;
Scanner keyboard=new Scanner(System.in);
int Price=keyboard.nextInt();
while(Price>1000||Price<1){
Price=keyboard.nextInt();
}
sum=Price*1.00417;
double Sum=sum+100;
for(int i=0;i<5;i++){
Sum*=(1.00417);
Sum+=100;
}
Sum= (Math.floor(Sum*10)/10);
System.out.printf("%.1f", Sum);
}
}
뭐가 틀린건가요?
값이 비슷하게만 나오고 안나와요