Q : Write a program to compute the following series:
x + x3 / 3! + x5/ 5! + …
To a given accuracy for x from 00 to 1800 in the steps of 100, use a inbuilt function FACT(n) to compute the factorial.
Solution :
x + x3 / 3! + x5/ 5! + …
To a given accuracy for x from 00 to 1800 in the steps of 100, use a inbuilt function FACT(n) to compute the factorial.
Solution :
#include<stdio.h>
#include<conio.h>
int fact(int);
void main()
{
int x,step,y,i;