From e39a86bef22ab0d21af373d56860dbdcd7c7472c Mon Sep 17 00:00:00 2001 From: selon Date: Tue, 23 Sep 2025 14:02:45 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20des=20fichiers=20des=20s=C3=A9ances=20p?= =?UTF-8?q?r=C3=A9c=C3=A9dentes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DEV1.1/TP07/sequence.c | 21 +++++++++++++++++++++ DEV1.1/operations.c | 11 +++++++++++ DEV1.1/poussiere.c | 7 +++++++ 3 files changed, 39 insertions(+) create mode 100644 DEV1.1/TP07/sequence.c create mode 100644 DEV1.1/operations.c create mode 100644 DEV1.1/poussiere.c diff --git a/DEV1.1/TP07/sequence.c b/DEV1.1/TP07/sequence.c new file mode 100644 index 0000000..72c830c --- /dev/null +++ b/DEV1.1/TP07/sequence.c @@ -0,0 +1,21 @@ +#include +#include + +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; + } +} \ No newline at end of file diff --git a/DEV1.1/operations.c b/DEV1.1/operations.c new file mode 100644 index 0000000..5fcdec0 --- /dev/null +++ b/DEV1.1/operations.c @@ -0,0 +1,11 @@ +#include +#include + +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; +} \ No newline at end of file diff --git a/DEV1.1/poussiere.c b/DEV1.1/poussiere.c new file mode 100644 index 0000000..0e2c0d2 --- /dev/null +++ b/DEV1.1/poussiere.c @@ -0,0 +1,7 @@ +#include +#include + +int main(void) { + printf("%.12f\n ", 12345.678910111213); + return EXIT_SUCCESS; +}