Program to find Circumference of a Circle | CPP program to find circumference of circle ; utility function ; driver function
#include <bits/stdc++.h> NEW_LINE using namespace std ; #define PI  3.1415 NEW_LINE double circumference ( double r ) { double cir = 2 * PI * r ; return cir ; } int main ( ) { double r = 5 ; cout << " Circumference ▁ = ▁ " << circumference ( r ) ; return 0 ; }