I am trying to write C code for sin(x) using the first 5 terms of the taylor series. I am new to programming and am not allowed to use loops. I don't have much yet, but what I have so far is:
Code:
/* solution to Taylor Series approximation of sin(x) */
#include <stdio.h>
#define PI 3.1416f
int main ()
{
float x_deg;
float x;
float sinx;
/*enter the angle "x_deg