MIT-Curricular/DS/C/test/loading.c

37 lines
402 B
C
Raw Permalink Normal View History

2024-08-13 11:29:34 +05:30
#include <stdio.h>
int main(){
int k,i,j;
2024-09-10 11:13:41 +05:30
for(;;){
for(k=0;k<101;k++){
2024-08-13 11:29:34 +05:30
printf("[");
2024-09-10 11:13:41 +05:30
for(i=0;i<100-k;i++){
2024-08-13 11:29:34 +05:30
printf(":");
}
for(i=0;i<k;i++){
printf(" ");
}
printf("]\n");
}
printf("\n");
2024-09-10 11:13:41 +05:30
for(k=0;k<101;k++){
2024-08-13 11:29:34 +05:30
printf("[");
for(i=0;i<k;i++){
printf(":");
}
2024-09-10 11:13:41 +05:30
for(i=0;i<100-k;i++){
2024-08-13 11:29:34 +05:30
printf(" ");
}
printf("]\n");
}
2024-09-10 11:13:41 +05:30
}
2024-08-13 11:29:34 +05:30
}