Try compiling and running the code you are developing.
#include<iostream>
using namespace std;
void my_sum(int r)
{
float sum;
sum = 2 * 3.14 * r;
cout << "The circumference of a circle is " << sum << "." << endl;
}
int main()
{
my_sum(1);
return 0;
}
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314