Files
CITISE1/IUT/Info1/TD/Exercices/volumeSphere/volumeSphere.cpp
2026-04-08 20:11:20 +02:00

10 lines
189 B
C++

#include "volumeSphere.h"
float volumeSphere(float rayon) {
const float PI = 3.141592;
float volume;
volume = rayon * rayon * rayon * PI * 4.0 / 3.0;
return volume;
}