10 lines
272 B
C
10 lines
272 B
C
|
# 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;
|
||
|
}
|