C Program to find Area of Right Angle Triangle

C Program to find the Area of Right Angle Triangle

The Area of Right Angle Triangle can be calculated by using formulae:  (base * height)/2. For example:  if base and height of Area of Right Angle Triangle are 8 and 3, then the Area of Right Angle Triangle  will be 12. The below given C program will find the Area of Right Angle Triangle.  Kindly check out the program to find the Area of Right Angle Triangle


Area of Right Angle Triangle Program


    #include<stdio.h>
    int main(){
                   int height, base;
                   float area;
                   printf("Give the height of Right Angle Triangle : ");
                   scanf("%d", &height);
                   printf("\n Give the base of Right Angle Triangle : ");
                   scanf("%d", &base);
                   area = (base * height)/2;
    printf("\n\n The Area of Right Angle Triangle is : %f", area);
    return (0);
    }

  


Sample Output:

                    Give the height of Right Angle Triangle : 3
                    Give the base of Right Angle Triangle : 8
                    The Area of Right Angle Triangle is : 12


Other Related C Programs :


* C Program to find whether the given number is Odd or Even

* C Program to find the Sum of Odd Digits

* C Program to find the Sum of Even Digits

* C Program to find the Sum of Even and Odd Digits,

* C Program to Display Odd digits

* C Program to Display even digits

* C Program to Display Odd Numbers,

* C Program to Display Even Numbers,

* C Program to Check whether the given number is Armstrong number

* C Program to display the Armstrong numbers in Range

* C Program to display the Armstrong numbers between 1 and 1000

* C Program to check perfect number, perfect numbers in range

* C Program to Check Prime number, Prime numbers between 1 and 100

* C Program to display the Prime numbers in a Range

* C Program to display the Sum of Prime numbers

* C Program to Check Strong number

* C Program to display the Strong number in Range

* C Program to Check whether the given number is polindrome number or not

* C Program to Check polindrome number using for loop

* C Program to Check polindrome number using Recursion

* C Program to  check whether the given string is polindrome or not

* C Program to find the Roots of Quadratic equation

* C Program to display Fibonacci Series

* C Program to display the Fibonacci Series using an array

* C Program to display the Fibonacci Series using while loop

* C Program to find the Sum of Fibonacci Series, Factorial of Number

* C Program to find the Factorial without using Recursion

* C Program to find the Factorial using Pointers

* C Program to find the Factorial using Function

Bookmark and Share