Sum of sin series

Sample C Program to find sin value of a given angle

  1. /* Program to find sin value of a given angle */
  2. /*Formula sin x = x/1! - x^3/3! + x^5/5! - x^7/7!*/
  3.  
  4. #include <stdio.h>
  5. #include <math.h>
  6. #define PI 3.1416
  7. "\n\t\t Sum of sin series""\n\t\t*******************\n""\nEnter the value of angle and n " );
  8. scanf( "%d ", &xdeg );
  9. scanf( "%d""\n The sin value = %f""\n The use of library function sin in value = %f""\n\n\t\t********************\n" );
  10. getch( );
  11. }