Last active
December 30, 2015 08:56
-
-
Save jmramirezpro/55f60206f06d2d1a50bc to your computer and use it in GitHub Desktop.
This file contains 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
/* | |
* AreaCirculo.c | |
* Ejercicios del Podcast Codigo Fuente - Programa 15 | |
* Programa que lee el área del circulo y muestra su radio | |
* Creado el 29 de dic. de 2015 | |
* Author: jmramirez | |
*/ | |
#include <stdio.h> | |
#include <math.h> | |
#define PI 3.14159 | |
int main(void) | |
{ | |
float radio; | |
float area; | |
printf ("Introduce el área del circulo: "); | |
scanf ("%f", &area); | |
radio = sqrt(area/PI); | |
printf ("El círculo de area %f tiene de radio: %f\n", area, radio); | |
return (0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment