C Program to Calculate Area of Right angle Triangle
C Programming Language / Fundamentals of C Language
2301Program:
#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.
# C Tutorials
# JAVA Tutorials
# HTML Tutorials
# Computer Fundamental
# Data Structure
# DBMS Tutorials
SQL
# C# Language
# R Language
# PHP
# Python
# Vue JS