First commit
This commit is contained in:
17
IUT/Info1/TD/Exercices/volumeSphere/main.cpp
Normal file
17
IUT/Info1/TD/Exercices/volumeSphere/main.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user