#include <stdio.h>
#define PI 3.1416
int main() {
float radio,area,longitud;
printf("Introduce el radio del círculo:\n");
scanf("%f",&radio);
area=PI*radio*radio*radio;
longitud=2*PI*radio;
printf("El área del círculo es: %f\n",area);
printf("La longitud de la circunferencia es: %f",longitud);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: