계속 wa가 뜨는 이유를 모르겠습니다

lsj8973 Reply 7 years 9 weeks ago
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double R = sc.nextDouble(); double V = sc.nextDouble(); while((R>1000)||(R<1)) { R= sc.nextDouble(); } while((V>1000)||(V<1)) { V=sc.nextDouble(); } double A = (int)(R*R*3.14159*10) / 10.0; double B = (int)(R*R*3.14159*V*10)/10.0; System.out.printf("%.1f\n%.1f", A, B); } }
onacloud Reply 7 years 9 weeks ago
축하드려요