//Triginometric Functions
//Downloaded from www.c4cprog.co.nr
#include<conio.h>
#include<math.h>
void main()
{
float x;
char t;
clrscr();
printf("Enter the Value of X\n");
scanf("%f",&x);
x=(x*3.14)/180;
printf("\n\nEnter \ns For finding sin(x)\nc For finding cos(x)\nt For finding tan(x)\n\n");
scanf(" %c",&t);
switch (t)
{
case 'S':
case 's':
printf("\nThe Value is = %f",sin(x));
break;
case 'C':
case 'c':
printf("\nThe Value is = %f",cos(x));
break;
case 'T':
case 't':
printf("\nThe Value is = %f",tan(x));
break;
default:
printf("\nInvalid Choice");
}
getch();
}
Programs Can Also Be Downloaded From The Folders Below....[Or Scroll Down]
Trigonometric Functions
Click Here To Download C File Of This Program
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment