|
|
back to boardWrong Answer 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 Re: Wrong Answer Posted by Kitty 24 Oct 2012 12:37 why don't you use 'double' or 'long double' for input[65536] directly? Re: Wrong Answer Posted by Your_Y 2 Feb 2013 15:02 Are u a girl? |
|
|