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

5
jeu.c
View File

@@ -6,6 +6,11 @@
void GraphJeu(){
int x = 50, y = 50, xx = 150, yy = 50, i = 0;
printf("fichier jeu.c taille variable\n");
DessinerSegment(x, y, xx, yy);
for(i = 0; i < 9; i++){
DessinerSegment(x, y * i, xx * i, yy * i);
}
while(1){}
}

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");
}