//This program uses functions to find the circumference of a circle.
//Sam Bryant Lab6 CSE100
#include<iostream>
#include<cmath>
usingnamespace std;
double circumference();
int main()
{
double radius;
cout << "Please enter the radiuse of the circle." << endl;
cin >> radius;
double area = (3.14519*radius*radius);
cout << "The area of the circle is " << area << endl;
return 0;
}
{
double circumference();
{
double circumference = (2 * 3.14159*radius);
cout << "The circumference of the cirlce is " << circumference << endl;
system("pause");
return circumference;
}
}
The error message should contain also the line-number of offending syntax. I do presume that you do use IDE that even provides hyperlinks for your convenience.
I this case lines 22 and 33 make one ask: what is the purpose of these braces?