- Joined
- Jun 1, 2017
- Messages
- 55
- Reaction score
- 7
Code(c):
#include <iostream>
using namespcae std;
const double pi = 3.14;
double Area(double radius);
double Circumderence(double radius);
int main(){
cout "Enter radius:";
double radius = 0;
cin >> radius;
cout << "Area is:" << Area(radius) << endl;
cout <<"Circumderence is:" << Circumderence(radius) << endl;
return 0;
}
double Area(double radius)
{
return Pi * raduis * raduis;
}
double Circumderence(double radius)
{
return 2 * pi * radius;
}
#include <iostream>
using namespcae std;
const double pi = 3.14;
double Area(double radius);
double Circumderence(double radius);
int main(){
cout "Enter radius:";
double radius = 0;
cin >> radius;
cout << "Area is:" << Area(radius) << endl;
cout <<"Circumderence is:" << Circumderence(radius) << endl;
return 0;
}
double Area(double radius)
{
return Pi * raduis * raduis;
}
double Circumderence(double radius)
{
return 2 * pi * radius;
}