C Program 6#include<stdio.h>main (){int b,h;float area ;clrscr();printf("Enter base and height");scanf("%d%d",&b,&h);area=(h*b)/2;printf("areab of triangle is=%f\n",area);getch();}
No comments: