26 lines
446 B
C
26 lines
446 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int main(void){
|
|
int cases;
|
|
int i;
|
|
int a;
|
|
printf("Entrez le nombre de cases : ");
|
|
scanf("%d", &cases);
|
|
if (cases > 0){
|
|
printf("┌──");
|
|
for(i=0; i < cases-1; i++){
|
|
printf("┬──");
|
|
}
|
|
printf("┐\n");
|
|
for(i=0; i <= cases; i++){
|
|
printf("│ ");
|
|
}
|
|
printf("\n");
|
|
printf("└──");
|
|
for(i=0; i< cases-1; i++){
|
|
printf("┴──");
|
|
}
|
|
printf("┘\n");
|
|
}
|
|
return 0;
|
|
} |