C program to find Sin, Cos, Tan of a number

C Program
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
   float x;
   printf("Enter Value of X:");
   scanf("%f",&x);
   printf("The sin of the value is :%f\n",sin(x));
   printf("The cos of the value is :%f\n",cos(x));
   printf("The tan of the value is :%f\n",tan(x));
}


No comments:

Post a Comment