| 
 
Right angle Triangle 
 |  Definition :
  | 
Program :
#include#include void main() { int base,height; float area; clrscr(); // Clear Screen printf("Enter the base of Right Angle Triangle : "); scanf("%d",&base); printf("Enter the height of Right Angle Triangle : "); scanf("%d",&height); area = 0.5 * radius * radius; printf("Area of Right Angle Triangle : %f",area); getch(); } 
Output :
Enter the base of Right Angle Triangle : 4 Enter the height of Right Angle Triangle : 8 Area of Right Angle Triangle : 16.0

No comments:
Post a Comment