Program to find circumference of a circle in c++


 Program to find circumference of a circle in c++.
Write a program to find circumference of circle using c++.
Write c++ code to find circumference of circle


#include<iostream>
int main()
{
float r, circum , pi;
clrscr();
cout<<"Enter the radius of the circle : ";
cin>>r;
pi = 3.14;
circum = 2*pi*r;
cout<<"The circumference of the circle is : "<<circum<<endl;
getch();
return 0;
 }

No comments:

Post a Comment