First commit

This commit is contained in:
2026-04-08 20:11:20 +02:00
parent 10fe469c10
commit 79f15536a1
861 changed files with 135610 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,17 @@
#include <iostream>
#include "volumeSphere.h"
using namespace std;
int main() {
float rayon;
float volume;
cout << "Entrez le rayon de votre sphère : " << endl;
cin >> rayon;
volume = volumeSphere(rayon);
cout << "le volume de votre sphère est " << volume << " u.a.²" << endl;
return 0;
}

View 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;
}

View File

@@ -0,0 +1 @@
float volumeSphere(float);