/*write a c programme to calculate area of triangle*/ #include<stdio.h> #include<conio.h> void main() { float b,l,area; clrscr(); printf("enter the value of b:"); scanf("%f",&b); printf("enter the value of l:"); scanf("%f",&l); area=0.5*b*l; printf("area of triangle: %.2f",area); getch(); }
No comments:
Post a Comment