11 Octobre

This commit is contained in:
2022-10-11 11:28:13 +02:00
parent 8f64f6143a
commit 965589da20
4 changed files with 63 additions and 1 deletions

View File

@@ -20,7 +20,30 @@ int main() {
printf("*");
} printf("\n");
}
}
} else{
if (n=='c'){
printf("Hauteur ? ");
scanf("%d",&h);
for (i=1;i<=h;i++){
for (j=1;j<=h;j++){
if (j==1||j==h){
printf("* ");
} else{
if (i==1||i==h){
printf("* ");
}else{
printf(" ");
}
}
}printf("\n");
}
}else{
if(n=='q'){
printf("Au revoir...\n\n");
break;
}
}
}
}
return 0;
}