Don't miss the point now.
Code:
/* Sphere.c */
#include<stdio.h>
int main(void){
double r, v, s;
const double pi = 3.141592654;
int check = 0;
printf("Enter the radius of the sphere: ");
check = scanf("%lf", &r );
/* Store whatever the user typed at the address of r. */
if( check == 1 ) {
/* Recall that scanf returns the number of objects assigned,
like the rest of the *scanf family. */
v = 4.0/3.0*pi*r*r*r;
s = 4*pi*r*r;
printf("The volume is %lf and the surface area is %lf.", v, s);
}
return 0;
}