- 1
Can someone help me write a program to calculate the cirmference of a circle please
7 Answers
+ 2
from where u belong???
+ 1
yaa
- 1
# include <iostream.h>
int main ( )
{
int r, area;
cout <<"enter radius of circle";
cin >> r;
area = 3.14*r*r;
cout <<"area="<< area;
return 0;
}
- 1
sorry I wrote to find for area of circle
- 1
just change formula
- 1
thanks it will help
- 1
#include<iostream>
using namespace std;
void main (){
//r=radius
double r;
const double pi=3.14;
cout<<"enter the value of r"<<endl;
cin>>r;
cout<<"the circumference of a circle is"<<2*r*Pi<<endl;
}