From aae14586d533aff16b562d73e375f4a6580d7a75 Mon Sep 17 00:00:00 2001 From: khadir Date: Tue, 5 Nov 2024 13:59:19 +0100 Subject: [PATCH] test pour pion --- pion.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/pion.c b/pion.c index e69de29..b38c810 100644 --- a/pion.c +++ b/pion.c @@ -0,0 +1,27 @@ +#include +void afficherPion(int x, int y); + +int main() { + int x = 1; + int y = 3; + + afficherPion(x, y); + + return 0; +} + +void afficherPion(int x, int y) { + int i; + + for (i = 0; i < y; i++) { + printf("\n"); + } + + for (i = 0; i < x; i++) { + printf(" "); + } + + printf("O\n"); +} + +