Program to illustrate trigonometric function

1821
Program to illustrate trigonometric function
Program to illustrate trigonometric function
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
    int n; 
    float f;
    clrscr();
    printf(" enter angle in degree \n"); 
    scanf("%d",&n);
    f=n*22.0/7.0/180;         /* converting angle to radians */
    printf("\n angle =%5d\n sin(%d) =%f\n cos(%d) = %f\n tan(%d) =%f",
                 n,n,sin(f),n,cos(f),n,tan (f));
    getch();
{
    Output:
    enter angle in degree
    30
    angle = 30
    sin(30) = 0.500183
    cos(30) = 0.865920
    tan(30) = 0.577631

 

 

Program to illustrate trigonometric function c program trigonometric functions write a program to demonstrate trigonometric functions of sine cosine and tan of given degree write a program to demonstrate trigonometric functions of sine cosine and tan of given degree in cc program to demonstrate trigonometric functions of sine cosine and tan of given degree Program to illustrate trigonometric function in cc Program to illustrate trigonometric function write a Program of trigonometric function Program of trigonometric function c Program trigonometric function Program trigonometric function in c trigonometric function Program to illustrate trigonometric function estudyhelper Program to illustrate trigonometric function coding.booksinhindi.com