diff --git a/a1 b/a1 new file mode 100644 index 0000000..34434f6 --- /dev/null +++ b/a1 @@ -0,0 +1,26 @@ +#include +#include +#include +int main() +{ + int i,c; + double x; + double result=0; + scanf("%lF",&x); + double *array; + array = (double*) malloc(1000); + for(i=0,c=1;i0; i--,j++){ + printf("%.2F ",array[j]); + result+=array[i-1]*pow((double)x,j); + } + + printf("%.2F",result); + free(array); + return 0; +}