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);
}

Not sure what you mean. Just put that code inside a loop?

continued here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.