샘플로 해보면 잘되는데 왜 계속 wrong뜨는지모르겠어요. 한번봐주세요
import java.util.Scanner;
public class main3 {
public static void main(String[] args) throws Exception {
Scanner sc=new Scanner(System.in);
double a,b,c,d;
a=sc.nextDouble();
b=sc.nextDouble();
c=(double)(a*a*(3.14159));
d=(double)(c*b);
c=(int)(c*10);
c=c/10;
d=(int)(d*10);
d=d/10;
System.out.println(c);
System.out.println(d);
}
}