How can one make a program repeat a set of lines of code.like for example

printf("enter the value of x:");
scanf("%d",&x);
for(i=0;i<1;i++){
value+= arr[i]*(x,i);
printf("\n The value of the polynommial is %ld",value);
}

How can you make it repeat so that it continues to read x and give out values

Next time, please use code tags and edit your original post instead of creating a new one.

The solution for your question: simply encase the code you posted in another loop. I'll leave it up to you to figure out the best outer loop for this situation.