Chapter4
This commit is contained in:
parent
08ec3be7a9
commit
c71ffdd716
Binary file not shown.
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user