This commit is contained in:
k0rrluna 2025-02-06 10:22:24 +03:00
parent 08ec3be7a9
commit c71ffdd716
2 changed files with 18 additions and 3 deletions

Binary file not shown.

View File

@ -1,11 +1,26 @@
#include <stdio.h>
int main(void) {
int start = 10;
for(int i = 1; i <= start; i++) {
for(int i = 0; i <= 10; i++) {
for(int j = 0; j <= i; j++){
printf("%s", "*");
}
}
printf("\n");
}
for(int i = 0; i <= 10; i++) {
for(int j = 10; j >= i; j--){
printf("%s", "*");
}
printf("\n");
}
for(int i = 0; i <= 10; i++) {
for(int t = 0; t <= i; t++){
printf(" ");
}
for(int j = 10; j >= i; j--){
printf("%s", "*");
}
printf("\n");
}
}