Ajout des fichiers des séances précédentes

This commit is contained in:
2025-09-23 14:02:45 +02:00
parent f888480ecf
commit e39a86bef2
3 changed files with 39 additions and 0 deletions

21
DEV1.1/TP07/sequence.c Normal file
View File

@@ -0,0 +1,21 @@
#include <stdio.h>
#include <stdlib.h>
int main (void){
int a, b ;
printf("Entrez deux entiers : ");
scanf(%d ,&a);
scanf %d" , &b);
if (a > b) {
int tmp = a;
a = b;
b = tmp;
}
int i= 0
while (i<10){
;
i = i + 1;
}
}

11
DEV1.1/operations.c Normal file
View File

@@ -0,0 +1,11 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
printf("%5.0f\n", 5.0+2.5);
printf("%5.0f\n", 5.0-2.5);
printf("%5.0f\n", 5.0*2.5);
printf("%5.0f\n", 5.0/2.5);
printf("%.5.0f\n", 5.0%2.5);
return EXIT_SUCCESS;
}

7
DEV1.1/poussiere.c Normal file
View File

@@ -0,0 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
printf("%.12f\n ", 12345.678910111213);
return EXIT_SUCCESS;
}