Ajout des TP

This commit is contained in:
stiti
2024-02-01 13:55:03 +01:00
parent 4fe273c309
commit 113583b37a
228 changed files with 7094 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#include <stdlib.h>
#include <stdio.h>
int main(void)
{
char dizaineMois;
char uniteMois;
char dizaineAnnee;
char uniteAnnee;
printf("Saisissez votre numéro de sécurité sociale : ");
getchar();
dizaineAnnee = getchar();
uniteAnnee = getchar();
dizaineMois = getchar();
uniteMois = getchar();
printf("Vous êtes né en : ");
printf("%c", dizaineMois);
printf("%c", uniteMois);
printf("/");
printf("%c", dizaineAnnee);
printf("%c\n", uniteAnnee);
return EXIT_SUCCESS;
}

View File

@@ -0,0 +1,8 @@
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
printf("%c\n", 65);
}

View File

@@ -0,0 +1,11 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void)
{
printf("%c%c%c%c%c %c%c%c%c%c%c\n", '\110', 'E', 'L', 'L', 'O', 'W', 'O', 'R', 'L', 'D', '\x21');
return EXIT_SUCCESS;
}