Skip to content

Instantly share code, notes, and snippets.

@m4hi2
Created April 5, 2017 20:03
Show Gist options
  • Select an option

  • Save m4hi2/5a52e17d35f133612267cdefe4fac17a to your computer and use it in GitHub Desktop.

Select an option

Save m4hi2/5a52e17d35f133612267cdefe4fac17a to your computer and use it in GitHub Desktop.
#include <stdio.h>
#define PI 3.14159
int main() {
float r;
scanf("%f", &r);
printf("VOLUME = %.3f\n", (4/3.0)*PI*r*r*r);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment