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;
}
Reputation Points: 2780
Solved Threads: 312
long time no c
Offline 4,790 posts
since Apr 2004