How would you do this c program, I'm a beginner I'm just starting with C, and i can't figure out how to finish the middle part.
Complete the following C program that first reads a, b, c, where a and b are two degrees and c is increment. The program then generates a table of conversions from degrees to radians. Start degrees at a and increment by c until the degree is greater than b.
Recall that we say 180o is equal to π radian.
You can assume that π is 3.14.
Code:
#include <stdio.h>
#define PI 3.14
int main(void)
{
int a,b,c, degree;
/* Enter the start degree, end degree, and increment */
printf("Enter a b c : ");
scanf("%d %d %d", &a, &b, &c);
for (i=a;i<=b;i=i+c)
{
printf("degree Radian");
printf(" %d %f", i, i*3.14/180);
}
system("pause");
/* Exit program. */
return 0;
}