You are here:   HomeC Programming (Pratical)C Program Trace a Matrix
by Dinesh Thakur Category: C Programming (Pratical)

 In this program user ask to compute Sine (trigonometric function) Series. The Variable of float or integer type declared that will be use to contain the value. User asks to enter the value and then the computation of PI function described. Here term variable used for temporary value container as in the program this variable contain the x1 and then swapped for Sine. For loop statement also been used for varying the condition. Then using compatible condition the output is displayed.

Problem Statement:
The trigonometric Symbol Sine Series to be computed through a C program.

  1. Declare Value of PI and ACC.
  2. Used Computation algorithm.
  3. Using Loop Statement.
  4. Display result On the Screen.

Here is source code of the C program to compute the Sine Series. The C program is successfully compiled. The program output is also shown below.


#define ACC 0.000001
#define PI 3.14
void main()
          int x,i;
          float x1,x2,sine=0,term;
          printf("Enter the X value : ");
                    term = (x2*(-term))/(i*(i-1));
                    sine = sine+term;
Output :
Enter the X value : 100

Search Content

Advance Courses

Basic Courses

Advertise with Us