Before writing the program of calculating the altitude of isosceles triangle in different programming languages, firstly we have to know about the formula to find altitude of Isosceles triangle?
Altitude of Isosceles Triangle = sqrt (( a *a ) - (( b * b ) / 4) )
Program of calculating the altitude of Isosceles Triangle in different Programming languages
Program 1: Write a Program in C language:
Output of Above C program:
Program 2: Write a Program in Java language:
Output of Above Java program:
Program 3: Write a Program in PHP programming language.
Output of Above PHP program:
Program 4: Write a Program in Python programming language.
Output of Above Python program: