|
|
back to boardwhat's wrong it is?I hava ran in VS2008 successful! #include <stdio.h> #include<math.h> void main() { float a[1024]; int i=0,count=0;
while(scanf("%f",&a[i])) {
a[i]=sqrt((float)a[i]);
count++; i++; }
for (int i=count-1;i>0|i==0;i--)
printf("\n%.4lf",a[i]); } |
|
|