This commit is contained in:
2024-11-12 14:43:39 +01:00
parent 36d1587799
commit 5cccef1907
2 changed files with 5 additions and 26 deletions

26
pion.c
View File

@@ -1,27 +1 @@
#include <stdio.h>
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");
}