|
|
вернуться в форумCan anyone tell me where I am mistaken? #include <stdio.h> #include <stdlib.h> #include <math.h> int main() { unsigned int input[65536]; int counter=0; while(scanf("%u", &(input[counter++])) != EOF); while (counter-- > 0) printf("%.4f\n", sqrt((double)(input[counter]))); return 0; } Edited by author 19.10.2012 22:03 why don't you use 'double' or 'long double' for input[65536] directly? |
|
|