#include <stdio.h>
#define PI 3.1416

int main() {
    float radio, volumen;
    printf("Introduce el radio de la esfera:\n");
    scanf("%f",&radio);
    volumen = (4.0/3.0)*PI*radio*radio*radio;
    printf("El volumen de la esfera es: %f", volumen);
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: