Before writing the program of calculating the surface area of hemisphere in different programming languages, firstly we have to know about what is hemisphere and what is the formula of the surface area?
What is Hemisphere?
A hemisphere is a half-part of the sphere.
Surface Area of Hemisphere is the total number of square units which exactly cover the hemisphere surface.
Surface Area of Hemisphere = 2 * pie * r2
Where, r is the radius of hemisphere
Program of calculating the surface area of a hemisphere 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: