question about circle calculate
i can't debug this i think it was right plz help
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#include<iostream>
using namespace std;
int main()
{
double pi, radius, area, circumference, diameter;
pi = 3.14159;
cout << "please input the value radius :";
cin >> radius;
area = pi * (radius*radius);
circumference = 2 * pi * radius;
diameter = radius * 2;
cout << "Diamater is " << diameter << "." << endl;
cout << "Circumference is " << circumference << "." << endl;
cout << "Area is " << area << "." << endl;
return 0;
}
|
What exactly is your problem?
can't debug
What gives you the impression there is debugging required? In other words, what is the problem that you encounter?
Topic archived. No new replies allowed.