From 1f971098c4e06dfcb312c93c2fbc7e377456a407 Mon Sep 17 00:00:00 2001 From: Harshil Darji Date: Tue, 18 Oct 2016 19:52:55 +0530 Subject: [PATCH] 18 Oct --- .../lagrange_theorem.C | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Computer Oriented Statistical Methods/lagrange_theorem.C 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