Professional Documents
Culture Documents
Assignement Odt
Assignement Odt
h>
int addNumbers(int a, int b); // function prototype
int main()
{
int n1,n2,sum;
return 0;
}
int main ( )
{
const double PI = 3.141592653589793;
double area, diameter;
cout << "Enter the area of the pizza in square inches : ";
cin >> area;
diameter = 2.0 * sqrt(area/PI);
cout << "The pizza has a diameter of :" << diameter << endl;
return 0;
} //end main