| 
 | 
вернуться в форумwrong answer in c #include <stdio.h> #include <stdlib.h> #include <math.h>   int main() {     long long buffer;     long result[131072];     int count = 0;     int i;     while( scanf( "%lld",&buffer ) != EOF )         result[count++]= buffer;       for( i = count-1; i >= 0; i-- )         printf("%.4f\n",sqrt(result[i]));     return (0); }     Please help solve the problem Re: wrong answer in c sqrt()的参数只能是double。自己改把。不会的话再说,我QQ: 992913926 Re: wrong answer in c hi choice double type for array and select printf("\n%.4lf",a[i]);Instead, your code.  |  
  | 
|