- 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

# C++ program to find circumference of the circular pond with radius R

Suppose we have a number R, represents the radius of a pond. We have to find the circumference of this pond.

So, if the input is like R = 73, then the output will be 458.67252742410977361942

## Steps

To solve this, we will follow these steps −

res := r * 2 * cos-inverse (-1) return res

Let us see the following implementation to get better understanding

## Example

Let us see the following implementation to get better understanding −

#include<bits/stdc++.h> using namespace std; double solve(int r){ double res = r * 2 * acos(-1); return res; } int main(){ int R = 73; cout << solve(R) << endl; }

## Input

73

## Output

458.673

- Related Questions & Answers
- Java program to find the circumference of a circle
- Program to find Circumference of a Circle in C++
- C++ program to find the Radius of the incircle of the triangle
- Program to find Perimeter / Circumference of Square and Rectangle in C++
- Program to find the maximum sum of circular sublist in Python
- C Program for Circumference of a Parallelogram
- Program to find area of a Circular Segment in C++
- Program to find circular greater element to the right in Python
- Program to find length of longest circular increasing subsequence in python
- C++ Program to find opponent in a circular standing of persons
- Python program to sort the elements of the Circular Linked List
- Area of a n-sided regular polygon with given Radius in C Program?
- Program to find sum of non-adjacent elements in a circular list in python
- C++ Program to Implement Circular Queue
- Program to find minimum radius to light up all houses on a street in Python

Advertisements