diff --git a/Computer Oriented Statistical Methods/lagrange_theorem.C b/Computer Oriented Statistical Methods/lagrange_theorem.C new file mode 100644 index 00000000..1b4694bb --- /dev/null +++ b/Computer Oriented Statistical Methods/lagrange_theorem.C @@ -0,0 +1,45 @@ +#include +#include +#include +#include +void main() +{ + float x[20],y[20],a,sum,p; + int n,i,j; + clrscr(); + printf("Enter the no of entry to insert->"); + scanf("%d",&n); + + for(i=0;i",i); + scanf("%f",&x[i]); + printf("enter the value of y%d->",i); + scanf("%f",&y[i]); + } + printf("\n X \t\t Y \n"); + printf("----------------------------\n"); + for(i=0;i%f",sum); + getch(); + +}} \ No newline at end of file