# C Program to Find Find Area of an Equilateral Triangle

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

## C Program to Find Area of an Equilateral Triangle

In this tutorial, we will learn to create a C program that will Find the Area of an Equilateral 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 Equilateral triangle?

In an equilateral triangle, all the sides are of the same length. All the angles of the equilateral triangle are 60 degrees.

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

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

## Output:-

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

• length = it will hold the integer value for the input size of the side for the triangle.
• ar  = it will hold the integer value for the area of a triangle.
• pr = it will hold the integer value for the perimeter of a triangle.
• sm  = it will hold the integer value for the semi perimeter 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 equilateral triangle.

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