|
|
back to boardI really don't know that what's wrong with it. Give the fresh a hand .thank you.CE error. Posted by ever_cc 11 Apr 2013 10:15 #include <stdio.h> #include<math.h> void main() { float a[1024]; int i=0,count=0;
do{ scanf("%f",&a[i]); i++; count=i-1; }while((a[count]>=0)&&(a[count]<=pow(float(10),18))); getchar(); for (i=count-1;i>=0;i--) printf("%.4f\n",sqrt((float)a[i])); } |
|
|