#include
int main() {
int i, j, k;
for (i = 0; i
j = i * 2 + 1;
k = 10 - i;
while (k-- > 0) {
printf(" ");
}
while (j-- > 0) {
if (j % 2 != 0) printf("*");
else printf(" ");
printf("\n");
return 0;
//*******************
// if (j % 2 != 0) printf("*");
// else printf(" ");
printf("*");
#include
int main() {
int i, j, k;
for (i = 0; i
j = i * 2 + 1;
k = 10 - i;
while (k-- > 0) {
printf(" ");
}
while (j-- > 0) {
if (j % 2 != 0) printf("*");
else printf(" ");
}
printf("\n");
}
return 0;
}
//*******************
#include
int main() {
int i, j, k;
for (i = 0; i
j = i * 2 + 1;
k = 10 - i;
while (k-- > 0) {
printf(" ");
}
while (j-- > 0) {
// if (j % 2 != 0) printf("*");
// else printf(" ");
printf("*");
}
printf("\n");
}
return 0;
}