From dc0e7580d346c869c10e6e90f906c3accdf05082 Mon Sep 17 00:00:00 2001 From: Aadit Agrawal Date: Tue, 10 Sep 2024 11:30:17 +0530 Subject: [PATCH] Add DS/C/test/loading2.c --- DS/C/test/loading2.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 DS/C/test/loading2.c 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"); + } +} +