Skip to content

Instantly share code, notes, and snippets.

@jmramirezpro
Last active December 30, 2015 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmramirezpro/55f60206f06d2d1a50bc to your computer and use it in GitHub Desktop.
Save jmramirezpro/55f60206f06d2d1a50bc to your computer and use it in GitHub Desktop.
/*
* 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