forked from randerson112358/C-Programs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanimation.c
More file actions
54 lines (46 loc) · 1019 Bytes
/
animation.c
File metadata and controls
54 lines (46 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# include <stdio.h>
# include <math.h>
int main(void)
{
int w= 20;
int z = 200000000;
int a = 20;//
int m;
//creates walking people
while(a != -1){
printf("\n\n\n\n\n\n\n\n\n\n\n");
if(a !=0){
printf(" o");//1
for(m=0; m<=a; m++){printf(" ");}// the distance
if(a%2 == 0)
printf(" o");
else
printf(" o");
printf("\n/|\\");//1
for(m=0; m<=a; m++){printf(" ");}// the distance
if(a%2 ==0)
printf("o/|\\");
else
printf("/|\\");
printf("\n/\\");//1
for(m=0; m<=a; m++){printf(" ");}
if(a%2 == 0)
printf(" /\\");
else
printf(" o/\\");
}// end creating walking people
else
{
printf(" o");printf(" o");
printf("\n/|\\");printf("<3/|\\");
printf("\n/\\"); printf(" /\\");
while(z!= 0){ z--;}// wasting time
z=2000000000;
}
while(z!= 0){ z--;}// wasting time
z=200000000;
system("cls");
a--;
}
system("pause");
}