Assignment Calculating Sphere

It's a simple assignment but I cant wrap my head around it. Calculating a sphere the formula is volume = 4.0 / 3.00 * 3.14 r^3

This is what I have so Far

{
double volume;
double radius;

printf("Enter Your Radius: " \n);
scanf("%lf",volume);

void
sphere_volume(double volume,double radius)
{
volume = 4.0 / 3.0 * 3.14 * radius
}
if radius >=0 then printf("The Volume of your Sphere is: ",volume)
else
printf("Error");
return 0;

Contains like 10 errors! thanks.
The code you posted doesn't make much sense, you should look at the tutorials
http://www.cplusplus.com/doc/tutorial/
Topic archived. No new replies allowed.