C Program to Find Area of an Isosceles Triangle

In this tutorial you will learn about the C Program to Find Area of an Isosceles Triangle and its application with practical example.

C Program to Find Area of an Isosceles Triangle

In this tutorial, we will learn to create a C program that will Find the Area of an Isosceles Triangle in C programming.

Prerequisites

Before starting with this tutorial, we assume that you are the best aware of the following C programming topics:

  • Operators in C Programming.
  • Basic Input and Output function in C Programming.
  • Basic C programming.
  • While loop in C programming.
  • Conditional Statements in C programming.

What is an Isosceles triangle?

In geometry, an isosceles triangle is a triangle that has two sides of equal length. The two sides of an equilateral triangle are equal so it can also be classified as an isosceles triangle.

Algorithm:-

Program description that will print the area of an Isosceles Triangle:-

In today’s tutorial, we will create a program, that will find the area of an Isosceles triangle using C programming. First, take the input common size of the side of the isosceles triangle by the user. Now, will take the size of another side.  Then we will calculate the area of that triangle using the mathematical expression. At last, we will print the area of an isosceles triangle.

Program Code:-

 

Output:-

In the above program, we have first initialized the required variable.

  • x = it will hold the value for the input common size of the side for the triangle.
  • y  = it will hold the value for the input size of the other side for the triangle.
  • iares = it will hold the integer value for the area of a triangle.

Input the size of the side of the triangle.

Code to calculate the area of the triangle.

Printing output the area of an isosceles triangle.

In this tutorial we have learn about the C Program to Find Area of an Isosceles Triangle and its application with practical example. I hope you will like this tutorial.