Ajout TPS + Entrainements
This commit is contained in:
9
DEV1.1/Entrainements/controle_machine_2_A/ldiv.c
Normal file
9
DEV1.1/Entrainements/controle_machine_2_A/ldiv.c
Normal file
@@ -0,0 +1,9 @@
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
ldiv_t quotient = ldiv(strtol(argv[1], NULL, 10), strtol(argv[2], NULL, 10));
|
||||
printf("quotient : %ld\n", quotient.quot);
|
||||
printf("reste : %ld\n", quotient.rem);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Reference in New Issue
Block a user