

- 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
Program to find Circumference of a Circle in C++
In this tutorial, we will be discussing a program to find circumference of a circle.
For this we will be provided with the radius of the circle. Our task is to calculate and print the circumference of that circle.
Example
#include<bits/stdc++.h> using namespace std; #define PI 3.1415 double circumference(double r){ double cir = 2*PI*r; return cir; } int main(){ double r = 5; cout << "Circumference : " << circumference(r); return 0; }
Output
Circumference : 31.415
- Related Questions & Answers
- Java program to find the circumference of a circle
- Calculate difference between circumference and area of a circle - JavaScript
- Program to find Perimeter / Circumference of Square and Rectangle in C++
- C Program for Circumference of a Parallelogram
- Java program to find the area of a circle
- Python Program to find the area of a circle
- Java Program to Find the Perimeter of a Circle
- C++ program to find circumference of the circular pond with radius R
- C Program for Program to find the area of a circle?
- Find the Area of a Circle in Java Program
- Program to find smallest difference of angles of two parts of a given circle in C++
- Find the area of a circle in C programming.
- C program to find the area of circle and cylinder using structures.
- Program to calculate the area of an Circle inscribed in a Square
- Find the Diameter or Longest chord of a Circle in C++
Advertisements