From ee80bb109d83d0b4618064941518f0b276a34d24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9C=5BJMF=5D=E2=80=9D?= Date: Thu, 7 Oct 2021 11:35:08 +0200 Subject: [PATCH] First --- TP2/printf.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 TP2/printf.c diff --git a/TP2/printf.c b/TP2/printf.c new file mode 100644 index 0000000..fccf7b1 --- /dev/null +++ b/TP2/printf.c @@ -0,0 +1,15 @@ +#include + +int main () { + int i = 1; + float f = 1.0 ; + char c = 'c'; + + printf("%d %f %c \n",i,f,c); + + printf("i = %d est un entier \n",i); + printf("f = %f est un float \n",f); + printf("c = %c est un char \n",c); + + return 1; +}