20 lines
486 B
C++
20 lines
486 B
C++
#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;
|
|
} |