Here's the problem:
Write a C program to generate a table of conversion from degrees to radians. Your table should include a third column that contains the sine of the angle. Print 10 lines int he table with starting angle at 0 degree and allow the user to enter the ending angle in degrees.
Here's my code so far:
But my problem is mainly on what to do to just print 10 lines Here's my attempt.
#define PI 3.1416
printf(" Enter the ending angle in degrees");
printf("%d %.3f %.3f\n",degrees,radians,sinx);
I tried using this:
I don't know what to do to print 10 lines in the loop proportional to the ending degree value. I know I messed up incrementing it by 10 in here which would mess up the loop, but I don't know what else to do. Please any help would be appreciated.