From a55a2bf6037f85d14e8b5d8f3258a141f773e099 Mon Sep 17 00:00:00 2001 From: pourchot Date: Wed, 21 Sep 2022 11:43:38 +0200 Subject: [PATCH] j'ai bien boss ! --- DEV1.1/{TP01 => TP01:Commandes,Entier}/Calcul.c | 0 .../PlusGrandEntierPossible.c | 0 DEV1.1/{TP01 => TP01:Commandes,Entier}/bases.c | 0 .../intermediaire.i | 0 .../{TP01 => TP01:Commandes,Entier}/reponses.txt | 0 DEV1.1/{TP01 => TP01:Commandes,Entier}/salut.c | 0 .../.nfs0000000000461e4800000017 | 15 +++++++++++++++ DEV1.1/TP02:Caracteres,Reels/a_maj_ascii.c | 8 ++++++++ DEV1.1/TP02:Caracteres,Reels/chiffre7ascii.c | 8 ++++++++ DEV1.1/TP02:Caracteres,Reels/numsecu.c | 16 ++++++++++++++++ DEV1.1/TP02:Caracteres,Reels/salut2.c | 8 ++++++++ DEV1.1/TP02:Caracteres,Reels/telescopage.c | 15 +++++++++++++++ 12 files changed, 70 insertions(+) rename DEV1.1/{TP01 => TP01:Commandes,Entier}/Calcul.c (100%) rename DEV1.1/{TP01 => TP01:Commandes,Entier}/PlusGrandEntierPossible.c (100%) rename DEV1.1/{TP01 => TP01:Commandes,Entier}/bases.c (100%) rename DEV1.1/{TP01 => TP01:Commandes,Entier}/intermediaire.i (100%) rename DEV1.1/{TP01 => TP01:Commandes,Entier}/reponses.txt (100%) rename DEV1.1/{TP01 => TP01:Commandes,Entier}/salut.c (100%) create mode 100644 DEV1.1/TP02:Caracteres,Reels/.nfs0000000000461e4800000017 create mode 100644 DEV1.1/TP02:Caracteres,Reels/a_maj_ascii.c create mode 100644 DEV1.1/TP02:Caracteres,Reels/chiffre7ascii.c create mode 100644 DEV1.1/TP02:Caracteres,Reels/numsecu.c create mode 100644 DEV1.1/TP02:Caracteres,Reels/salut2.c create mode 100644 DEV1.1/TP02:Caracteres,Reels/telescopage.c diff --git a/DEV1.1/TP01/Calcul.c b/DEV1.1/TP01:Commandes,Entier/Calcul.c similarity index 100% rename from DEV1.1/TP01/Calcul.c rename to DEV1.1/TP01:Commandes,Entier/Calcul.c diff --git a/DEV1.1/TP01/PlusGrandEntierPossible.c b/DEV1.1/TP01:Commandes,Entier/PlusGrandEntierPossible.c similarity index 100% rename from DEV1.1/TP01/PlusGrandEntierPossible.c rename to DEV1.1/TP01:Commandes,Entier/PlusGrandEntierPossible.c diff --git a/DEV1.1/TP01/bases.c b/DEV1.1/TP01:Commandes,Entier/bases.c similarity index 100% rename from DEV1.1/TP01/bases.c rename to DEV1.1/TP01:Commandes,Entier/bases.c diff --git a/DEV1.1/TP01/intermediaire.i b/DEV1.1/TP01:Commandes,Entier/intermediaire.i similarity index 100% rename from DEV1.1/TP01/intermediaire.i rename to DEV1.1/TP01:Commandes,Entier/intermediaire.i diff --git a/DEV1.1/TP01/reponses.txt b/DEV1.1/TP01:Commandes,Entier/reponses.txt similarity index 100% rename from DEV1.1/TP01/reponses.txt rename to DEV1.1/TP01:Commandes,Entier/reponses.txt diff --git a/DEV1.1/TP01/salut.c b/DEV1.1/TP01:Commandes,Entier/salut.c similarity index 100% rename from DEV1.1/TP01/salut.c rename to DEV1.1/TP01:Commandes,Entier/salut.c diff --git a/DEV1.1/TP02:Caracteres,Reels/.nfs0000000000461e4800000017 b/DEV1.1/TP02:Caracteres,Reels/.nfs0000000000461e4800000017 new file mode 100644 index 0000000..c22099a --- /dev/null +++ b/DEV1.1/TP02:Caracteres,Reels/.nfs0000000000461e4800000017 @@ -0,0 +1,15 @@ +#include + +int main(void) { + int n; + double x; + char c; + printf("Veuillez saisir un reel.\n"); + n = scanf("%lf", &x); + printf("Sa notation scientifique est : %f\n",x); + printf("Veuillez saisir un caractere.\n"); + n = scanf("%c", &c); + printf("J'ecris ce dernier 5 fois : %c %c %c %c %c\n",c,c,c,c,c); + + return 0; +} \ No newline at end of file diff --git a/DEV1.1/TP02:Caracteres,Reels/a_maj_ascii.c b/DEV1.1/TP02:Caracteres,Reels/a_maj_ascii.c new file mode 100644 index 0000000..dcb6d62 --- /dev/null +++ b/DEV1.1/TP02:Caracteres,Reels/a_maj_ascii.c @@ -0,0 +1,8 @@ +#include + + +int main() { +printf("%c\n", '\x41'); //100 0100 + +return 0; +} \ No newline at end of file diff --git a/DEV1.1/TP02:Caracteres,Reels/chiffre7ascii.c b/DEV1.1/TP02:Caracteres,Reels/chiffre7ascii.c new file mode 100644 index 0000000..e45e27d --- /dev/null +++ b/DEV1.1/TP02:Caracteres,Reels/chiffre7ascii.c @@ -0,0 +1,8 @@ +#include + + +int main() { +printf("%c\n", '\x37'); + +return 0; +} \ No newline at end of file diff --git a/DEV1.1/TP02:Caracteres,Reels/numsecu.c b/DEV1.1/TP02:Caracteres,Reels/numsecu.c new file mode 100644 index 0000000..8682977 --- /dev/null +++ b/DEV1.1/TP02:Caracteres,Reels/numsecu.c @@ -0,0 +1,16 @@ +#include + +int main(void) { + char m1; + char m2; + char a1; + char a2; + printf("Quel est votre numero de securite sociale ?\n"); + m1 = getchar(); + a1 = getchar(); + a2 = getchar(); + m1 = getchar(); + m2 = getchar(); + printf("Votre date de naissance est: %c%c/%c%c\n",a1,a2,m1,m2); + return 0; +} \ No newline at end of file diff --git a/DEV1.1/TP02:Caracteres,Reels/salut2.c b/DEV1.1/TP02:Caracteres,Reels/salut2.c new file mode 100644 index 0000000..ab42dee --- /dev/null +++ b/DEV1.1/TP02:Caracteres,Reels/salut2.c @@ -0,0 +1,8 @@ +#include + + +int main() { +printf("%c%c%c%c%c %c %c%c%c%c %c%c%c%c %c%c%c%c%c%c%c%c\n",'S','a','l','u','t','a','t','o','u','s','c','e','s','t','L','a','S','a','l','l','e','.'); + +return 0; +} \ No newline at end of file diff --git a/DEV1.1/TP02:Caracteres,Reels/telescopage.c b/DEV1.1/TP02:Caracteres,Reels/telescopage.c new file mode 100644 index 0000000..074d299 --- /dev/null +++ b/DEV1.1/TP02:Caracteres,Reels/telescopage.c @@ -0,0 +1,15 @@ +#include + +int main(void) { + int n; + double x; + char c; + printf("Veuillez saisir un reel.\n"); + n = scanf("%lf", &x); + printf("Sa notation scientifique est : %e\n",x); + printf("Veuillez saisir un caractere.\n"); + n = scanf("%c", &c); + printf("J'ecris ce dernier 5 fois : %c %c %c %c %c\n",c,c,c,c,c); + + return 0; +} \ No newline at end of file