#include<stdio.h> main() { float l,b,r,p,c,A; printf("Enter the lenght of tringle=\n"); scanf("%f",&l); printf("Enter the breath of tringle=\n"); scanf("%f",&b); printf("Enter the radius=\n"); scanf("%f",&r); A=l*b; p=2*(b+l); c=2*3.1416*r; printf("\nResult:\n"); printf("\nArea of triangle:%f units\n",A); printf("p of triangle: %f",p); printf("\n c of circle: %f",c); }
Subscribe to:
Post Comments
(
Atom
)
Post a Comment