-
-
Save gabrielcesar/6b0fd2ef457cbc891816e40c37e27557 to your computer and use it in GitHub Desktop.
b) Area of a circle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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