Add DS/C/test/loading2.c

This commit is contained in:
Aadit Agrawal 2024-09-10 11:30:17 +05:30
parent 50853ad1d6
commit dc0e7580d3

32
DS/C/test/loading2.c Normal file
View 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");
}
}