- Get link
- X
- Other Apps
/*
1) 16.12.2021
* * * * *
* * * *
* * *
* *
*
*/
#include <stdio.h>
#include <conio.h>
int main () {
int k=1;
for (int i=0; i<5; i++) {
int j=0, l=9;
for(int n=0; n<i; n++){
printf(" ");
j++;
l--;
}
for (; j<l; j++) {
if(k){
printf("*");
} else {
printf(" ");
}
k=!k;
}
k=1;
printf("\n");
}
getch();
return 0;
}
- Get link
- X
- Other Apps
Comments
Post a Comment