This commit is contained in:
2026-10-20 16:04:38 +02:00
parent bf705d701d
commit 0f9049cfa5
36 changed files with 527 additions and 6 deletions
+27
View File
@@ -0,0 +1,27 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int dividende;
int diviseur;
int quotient;
int reste;
printf("Entrez une valeur >= 0 : ");
scanf("%d", &dividende);
printf("Entrez une valeur > 0 : ");
scanf("%d", &diviseur);
quotient = 0;
reste = dividende;
while (reste >= diviseur) {
reste = reste - diviseur;
quotient++;
}
printf("--> %d = %d x %d + %d\n", dividende, quotient, diviseur, reste);
return EXIT_SUCCESS;
}