- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

In this problem, we are given a value that denotes the radius of a semicircle. Our task is to create a *program to find the Area and Perimeter of a
Semicircle in C++*.

**SemiCircle** is a closed figure that is half of a circle.

**Let’s take an example to understand the problem,**

R = 5

area = 39.25 perimeter = 15.7

To solve the problem, we will use the mathematical formula for the area and perimeter of a semi-circle which is derived by dividing the area of circle by 2.

Area of semicircle,A= $½(\prod^*a^2)=1.571^*a^2$

Perimeter of semicircle, P =(π*a)

Area of semicircle, area = $½(π^*a^2)$

**Program to illustrate the working of our solution**

#include <iostream> using namespace std; float calaAreaSemi(float R) { return (1.571 * R * R); } float calaPeriSemi(float R) { return (3.142 * R); } int main(){ float R = 5; cout<<"The radius of semicircle is "<<R<<endl; cout<<"The area of semicircle is "<<calaAreaSemi(R)<<endl; cout<<"The perimeter of semicircle is "<<calaPeriSemi(R)<<endl; return 0; }

The radius of semicircle is 5 The area of semicircle is 39.275 The perimeter of semicircle is 15.71

- Related Questions & Answers
- C Program for Area And Perimeter Of Rectangle
- Program to calculate area and perimeter of Trapezium
- Program to calculate area and perimeter of equilateral triangle in C++
- Find maximum volume of a cuboid from the given perimeter and area in C++
- Program to calculate area and perimeter of equilateral triangle
- Golang Program to Create a Class and Compute the Area and Perimeter of a Circle
- Python Program to Create a Class and Compute the Area and the Perimeter of the Circle
- How to calculate the area and perimeter of a circle in JavaScript?
- Java Program to find the perimeter of a cylinder
- Program to find Perimeter / Circumference of Square and Rectangle in C++
- Find the perimeter of a cylinder in C++
- Program to find the Area of a Parallelogram in C++
- Program to find the Area of a Pentagon in C++
- Find the perimeter of a cylinder in Python Program
- Program to find the Area and Volume of Icosahedron in C++

Advertisements