update
This commit is contained in:
20
DEV.1.1/Allocation_dynamique/2.Palindromes.c
Normal file
20
DEV.1.1/Allocation_dynamique/2.Palindromes.c
Normal file
@@ -0,0 +1,20 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
long int dividend;
|
||||
long int divisor;
|
||||
ldiv_t result;
|
||||
|
||||
/*printf("Veuillez saisir votre dividende : ");
|
||||
scanf("%ld", ÷nd);
|
||||
|
||||
printf("Veuillez saisir votre diviseur : ");
|
||||
scanf("%ld", &divisor);
|
||||
*/
|
||||
result = ldiv(dividend, divisor);
|
||||
printf("quotient : %ld\n", result.quot);
|
||||
printf("reste : %ld\n", result.rem);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Reference in New Issue
Block a user