왜 틀리는지 모르겠어요

james319 Reply 8 years 35 weeks ago
샘플로 해보면 잘되는데 왜 계속 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); } }
james319 Reply 8 years 35 weeks ago
YooJaeHyo Reply 8 years 35 weeks ago
11->11.0
pichulia Reply 8 years 34 weeks ago
http://stackoverflow.com/questions/16098046/how-to-print-double-value-without-scientific-notation-using-java 참고