|
|
вернуться в форумJava. Wrong answer. Test 2. Послано Daniil 18 фев 2015 17:38 import java.io.*; import java.lang.*; import java.util.*; public class MathSqrt { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); double[] array = new double[4];
for(int i = 0; i < array.length; i++) { array[i] = sc.nextDouble(); }
for(int i = array.length - 1; i >= 0 ; i--) { double b = Math.sqrt(array[i]); System.out.println(b); }
} } Edited by author 18.02.2015 17:39 Edited by author 18.02.2015 17:39 Re: Java. Wrong answer. Test 2. Why length of your array is 4? It's acceptable to the first test, but there is not a certain amount of numbers in the task. |
|
|