Write a program to receive value of an angle in degrees
Answers
Answered by
2
#include<stdio.h>
#include<math.h>
int main()
{
float degree;
int sum;
printf("enter the value of angle in Degree");
scanf("%f",°ree);
sum=(sin(degree)*sin(degree))+(cos(degree)*cos(degree));
printf("%d",sum);
getch();
}
It is the C program to receive value of an angle in degree and check whether sum of squares of sine & Cosine of the Angle is equal to 1
#include<math.h>
int main()
{
float degree;
int sum;
printf("enter the value of angle in Degree");
scanf("%f",°ree);
sum=(sin(degree)*sin(degree))+(cos(degree)*cos(degree));
printf("%d",sum);
getch();
}
It is the C program to receive value of an angle in degree and check whether sum of squares of sine & Cosine of the Angle is equal to 1
Similar questions