THIS IS THE UPDATED VERSION
now the problem is the conputation the evaluated value is always wrong..pls help
Code:
#include <stdio.h>
#include <conio.h>
#include <math.h>
#include <stdlib.h>

main(){
       double poly[11]={};
       double polysum;
       int w, v, x, y, n, z,QA;
       
       do{
          do{
             system("cls");
             printf("Polynomial Evaluation\n\n");
             printf("Enter the Order of Polynomial (max. 10): ");
             scanf("%d",&n);
             if(n>10||n<1){
                           system("cls");
                           printf("Invalid input. Please try again!!!\n");
                           printf("Please press the spacebar to continue!!");
                           getche();
                           }
             }while(n>10||n<1);
             y=n+1;
             z=n;
             v=n;
             while(y!=0){
                         printf("Please enter the constant for X raised to the %dth: ", z);
                         scanf("%lf",&poly[z]);
                         y--;
                         z--;
                         }
             printf("Enter the value of X: ");
             scanf("%d",&x);   
             for(w=0;w<n+1;w++){
                                polysum+=poly[w]*pow(x,n);
                                n--;
                                }
             polysum=polysum+poly[0];
             printf("The evaluated value of the %dth Order Polynomial  %lf\n", v, polysum);
             printf("Please press the spacebar to continue!!\n");
             getche();
             do{
                system("cls");
                printf("Do you want to repeat the computation?\n\n");
                printf("1 - Yes\n");
                printf("2 - No\n");
                scanf("%d", &QA);
                switch(QA){
                           case 1:
                                break;
                           case 2:
                                break;
                           default:
                                   system("cls");
                                   printf("Invalid input. Please try again!!!\n");
                                   printf("Please press the spacebar to continue!!");
                                   getche();
                                   break;   
                           }
                }while(QA>2||QA<1);
                polysum=0;
             }while(QA==1);
}