In connection to trigonometric functions I made a program that shows you how it works. This program shows you how to calculate for the sine function equivalent of any triangle. This program is used with the header file math.h to allow mathematical commands inside the program. Check out the sample codes below.
1: #include <stdio.h>
2: #include <conio.h>
3: #include <math.h>
4: # define pi 3.14159265
5:
6:
7: int main()
8: {
9: int angleA;
10:
11: printf ("Enter angle: ");
12: scanf("%d", &angleA);