18 lines
265 B
C++
18 lines
265 B
C++
#include "functions.h"
|
|
|
|
float PI = 3.141592;
|
|
|
|
float Perimetre(float rayon) {
|
|
float perimetre;
|
|
|
|
perimetre = PI * rayon * 2;
|
|
return perimetre;
|
|
}
|
|
|
|
float Surface(float rayon) {
|
|
float surface;
|
|
|
|
surface = PI * rayon * rayon;
|
|
return surface;
|
|
}
|