You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
233 B
20 lines
233 B
2 years ago
|
#include<stdio.h>
|
||
|
int main() {
|
||
|
int i,n;
|
||
|
for(i=1; i<=7; i+=2) {
|
||
|
for(n=1; n<=i; n++) {
|
||
|
printf("* ");
|
||
|
}
|
||
|
printf("\n");
|
||
|
}
|
||
|
|
||
|
for(i=5; i>=1; i-=2) {
|
||
|
for(n=1; n<=i; n++) {
|
||
|
printf("* ");
|
||
|
}
|
||
|
printf("\n");
|
||
|
}
|
||
|
return 0;
|
||
|
}
|
||
|
|