33 lines
521 B
C
33 lines
521 B
C
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
char array[100];
|
|
int i, j, k;
|
|
|
|
printf("[");
|
|
for (i = 0; i < 100; i++)
|
|
{
|
|
array[i] = ':';
|
|
printf("%c", array[i]);
|
|
}
|
|
printf("]\n");
|
|
|
|
for (i = 0; i < 100; i++)
|
|
{
|
|
printf("[");
|
|
for (j = 0; j < 100; j++)
|
|
{
|
|
array[j] = ':';
|
|
k = 0;
|
|
if(j==50-k){
|
|
array[j] = ' ';
|
|
}
|
|
printf("%c", array[j]);
|
|
k++;
|
|
}
|
|
printf("]\n");
|
|
}
|
|
}
|
|
|