|
|
back to boardwhy it's wrong #include<stdio.h> #include<math.h> int main(void){ int A[10000]; int i,k,j; i=0; while(scanf("%d",&k)!=EOF){ A[i]=k; i++; } for(j=i-1;j>=0;j--) printf("%.4f\n",sqrt(A[j])); return 0; } Re: why it's wrong Posted by Tonge 14 May 2012 10:43 INT <32767 OR 4294967296 . wile 876652098643267843 is much larger . |
|
|