-
Notifications
You must be signed in to change notification settings - Fork 0
/
Example15ModulusAnimation.java
34 lines (28 loc) · 1.14 KB
/
Example15ModulusAnimation.java
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
public class Example15ModulusAnimation
{
public static void main( String[] args ) throws Exception
{
for ( int i=0; i<80; i++ )
{
if ( i%10 == 0 )
System.out.print(" |_*_*_*_*_*_| ");
else if(i % 10 == 1)
System.out.print(" |_*_*_*_*_*_| ");
else if(i % 10 == 2)
System.out.print(" |_*_*_*_*_*_| ");
else if(i % 10 == 3)
System.out.print(" |_*_*_*_*_*_| ");
else if(i % 10 == 4)
System.out.print(" |_*_*_*_*_*_| ");
else if(i % 10 == 5)
System.out.print(" |_*_*_*_*_*_| ");
else if(i % 10 == 6)
System.out.print(" |_*_*_*_*_*_| ");
else if(i % 10 == 7)
System.out.print(" |_*_*_*_*_*_| ");
else
System.out.println(" ");
Thread.sleep(200);
}
}
}