Page

Saturday 30 May 2020

program to print trignometric ratios//lead to tech//luv yadav//c project mania

#include<conio.h>
#include<stdio.h>
#include<math.h>
void main()
{
 float p,b,h;
 clrscr();
 printf("\nEnter the perpendicular of trianlge:-");
 scanf("%f",&p);
 printf("\nEnter the base of the triangle:-");
 scanf("%f",&b);
 h=sqrt(p*p+b*b);
 printf("\nsine=%f/%f\n",p,h);
 printf("\ncos=%f/%f\n",b,h);
 printf("\ntan=%f/%f\n",p,b);
 printf("\ncosec=%f/%f\n",h,p);
 printf("\nsec=%f/%f\n",h,b);
 printf("\ncot=%f/%f\n",b,p);
 getch();
}

  output of this program show on this link given below:
  

No comments:

Post a Comment