Ajout TPS + Entrainements
This commit is contained in:
10
DEV1.1/controle_machine_2_B/decomposition.c
Normal file
10
DEV1.1/controle_machine_2_B/decomposition.c
Normal file
@@ -0,0 +1,10 @@
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
# include <math.h>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
int partie_entiere;
|
||||
modf(argv[1], &partie_entiere);
|
||||
printf("partie entière : %f\npartie décimale : %f", partie_entiere, (argv[1] - partie_entiere));
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Reference in New Issue
Block a user