C Program for Beginners : Area of Right Angled Triangle
Right angle Triangle | Definition :
|
Program :
#include<stdio.h> #include<conio.h> void main() { int base,height; float area; clrscr(); // Clear Screen printf("\nEnter the base of Right Angle Triangle : "); scanf("%d",&base); printf("\nEnter the height of Right Angle Triangle : "); scanf("%d",&height); area = 0.5 * radius * radius; printf("\nArea 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
Incoming search terms:
- right angled triangle program in c (4)
- c program to find area of right angled triangle (3)
- program to display area of a right angled triangle in c (2)
- a program to calculate the area of right angled triangle in c (1)
- how to calculate angle using c program (1)
- how to calculate area of right-angled trianle using javascript (1)