First commit
This commit is contained in:
10
IUT/Info1/TD/Exercices/volumeSphere/volumeSphere.cpp
Normal file
10
IUT/Info1/TD/Exercices/volumeSphere/volumeSphere.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user