//Program to display the Cosine Series of a Number #include #include void main() { int n; float x,term,sum; clrscr(); printf("Enter the value of x:"); scanf("%f",&x); x=x*3.14/180; term=sum=1; n=2; while(n<100) { term=(term*x*x*-1)/(n*(n-1)); sum=sum+term; n=n+2; } printf("Sum=%f\n",sum); getch(); } /* OUTPUT Enter the value of x : 7 Sum = 0.992554 */