- 1

Can someone help me write a program to calculate the cirmference of a circle please

11th Oct 2016, 10:17 AM
Anne Gitau
7 Respostas
+ 2
from where u belong???
11th Oct 2016, 10:19 AM
Anmol Khandelwal
Anmol Khandelwal - avatar
+ 1
yaa
11th Oct 2016, 10:18 AM
Anmol Khandelwal
Anmol Khandelwal - avatar
- 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; }
11th Oct 2016, 10:37 AM
Paras jain
- 1
sorry I wrote to find for area of circle
11th Oct 2016, 10:37 AM
Paras jain
- 1
just change formula
11th Oct 2016, 10:38 AM
Paras jain
- 1
thanks it will help
11th Oct 2016, 10:43 AM
Anne Gitau
- 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; }
11th Oct 2016, 3:38 PM
Hadeel Degaish
Hadeel Degaish - avatar