First commit
This commit is contained in:
17
IUT/Info1/TD/Exercices/5.3_surface_cyl/calculation.cpp
Normal file
17
IUT/Info1/TD/Exercices/5.3_surface_cyl/calculation.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user