Back To C Basics Index
//program to input base and height of right angled triangle and find area of right angled triangle #include
#include
void main() { int base; int height; float area; clrscr(); printf("enter base of right angle triangle"); scanf("%d",&base); printf("enter height of right angle triangle"); scanf("%d",&height); area=0.5f*base*height; printf("area of right angle triangle is %f",area); getch(); }