C Program to Calculate Area of Right angle Triangle
C Programming Language Fundamentals of C Language (Article) Fundamentals of C Language (Program)
2243Program:
#include"stdio.h" int main() { int base, height; float area; printf("\nEnter the base of Right Angle Triangle : \n"); scanf("%d", &base); printf("\nEnter the height of Right Angle Triangle : \n"); scanf("%d", &height); area = 0.5 * base * height; printf("\nArea of Right Angle Triangle : %f \n", area); return (0); }
Output:
Enter the base of Right Angle Triangle : 5 Enter the height of Right Angle Triangle : 8 Area of Right Angle Triangle : 20.000000 Press any key to continue . . .
This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.