Skip to content

Instantly share code, notes, and snippets.

@gabrielcesar
Last active July 21, 2016 14:26
Show Gist options
  • Save gabrielcesar/6b0fd2ef457cbc891816e40c37e27557 to your computer and use it in GitHub Desktop.
Save gabrielcesar/6b0fd2ef457cbc891816e40c37e27557 to your computer and use it in GitHub Desktop.
b) Area of a circle
/*
* b
*/
#include <stdio.h>
int main ( void )
{
float R; // height (altura)
float pi;
pi = 3.14159;
scanf ( "%f", &R );
printf ( "A=%.4f\n", pi * ( R * R ));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment