int main(int argc, const char * argv[]) {
@autoreleasepool {
for (int i=0; i<10; i++) {
for (int k=0; k<10-i; k++) {
printf("*");
}
for (int j=10; j<2*i+1; j++) {
printf("*");
}
printf("\n");
}
}
return 0;
}
-----------------
**********
*********
********
*******
******
******
*******
********
*********
**********
Program ended with exit code: 0 |
|