First commit
This commit is contained in:
20
IUT/Info1/TD/Exercices/5.3_surface_cyl/io.cpp
Normal file
20
IUT/Info1/TD/Exercices/5.3_surface_cyl/io.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include <iostream>
|
||||
#include "functions.h"
|
||||
using namespace std;
|
||||
|
||||
void Presentation() {
|
||||
cout << "Cet algortihme calcule le périmètre et la surface d'un disque de rayon saisi" << endl;
|
||||
}
|
||||
|
||||
void afficherResultats(float perimetre, float surface) {
|
||||
cout << "Perimètre : " << perimetre << "u.a." << endl;
|
||||
cout << "Surface : " << surface << "u.a.²" << endl;
|
||||
}
|
||||
|
||||
float saisieRayon() {
|
||||
float rayon;
|
||||
|
||||
cout << "Saisir une rayon" << endl;
|
||||
cin >> rayon;
|
||||
return rayon;
|
||||
}
|
||||
Reference in New Issue
Block a user