This commit is contained in:
Emmanuel Srivastava
2024-12-09 14:58:52 +01:00
parent 4dc8010741
commit 16332fec34
12 changed files with 105 additions and 16 deletions

View File

@@ -0,0 +1,17 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(int argc, char *argv[]) {
long int x, y;
ldiv_t result;
sscanf(argv[1], "%ld", &x);
sscanf(argv[2], "%ld", &y);
result = ldiv(x, y);
printf("quotient : %ld\n", result.quot);
printf("reste : %ld\n", result.rem);
return EXIT_SUCCESS;
}