|
|
back to boardHelp me. What's wrong? C++ task 1001 #include <stdio.h> #include <math.h> #define N 4 int main() { long double a[N]; long double b[N]; int i = 0; while(i < N) { scanf("%Lf",&a[i]); b[i]=sqrt((long double)a[i]); i++; } if(i == N) for(i= N - 1; i>=0; i--) { printf("%.4Lf\n", b[i]); }
} seems to return the right values. But writes "Wrong answer". Thanks! |
|
|