|
|
вернуться в форумproblem in 1001 in java Послано Nasimi 16 фев 2010 18:11 Dear Team, It is really very good support by you. But please, look at the problem 1001-in java. There might be problem in compiler-there is no one who solved this question in java. I will include my answer too.: import java.util.Scanner; public class second{ public static void main(String[] args) { Scanner s = new Scanner(System.in); double[] arr2=new double[200000]; int i=0,k=0; do{ arr2[k]=s.nextDouble(); k++; } while(s.hasNext()); for(i=k;i>0;i--){ System.out.printf("%.4f\n",Math.sqrt(arr2[i-1])); } } } Re: problem in 1001 in java Are you kidding :) Many people solved this problem in Java. I am among them. Edited by author 16.02.2010 21:05 |
|
|