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
+13
View File
@@ -0,0 +1,13 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int n;
printf("Veuillez entrer un entier naturel : \n");
scanf("%i", &n);
int reste = n % 3;
int plus_proche = (reste == 0) ? n : (reste == 1) ? n - 1 : n + 1;
printf("%i\n", plus_proche);
return EXIT_SUCCESS;
}