Add DS/C/test/loading2.c
This commit is contained in:
parent
50853ad1d6
commit
dc0e7580d3
32
DS/C/test/loading2.c
Normal file
32
DS/C/test/loading2.c
Normal file
@ -0,0 +1,32 @@
|
||||
#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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user