diff --git a/DS/C/test/loading2.c b/DS/C/test/loading2.c new file mode 100644 index 0000000..dd39a38 --- /dev/null +++ b/DS/C/test/loading2.c @@ -0,0 +1,32 @@ +#include + +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"); + } +} +