37-Write a C program to display the trigonometry functions.

Program: 37

Write a C program to display the trigonometry functions.

#include
#include
#include
int main()
{
    float a=0.5;
    float w,x,y,z;
    w=sin(a);
    x=cos(a);
    y=tan(a);
    z=pow(a,2);
    printf("%f\n %f\n %f\n %f\n", w, x, y, z);
    getch();
}
Output
0.479426
0.877583
0.546302
0.250000
Lokesh Kumar: Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.
Related Post
Leave a Comment

This website uses cookies.