Chinese zodiac: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Minor tidy) |
imported>Thebeez |
||
Line 4,372: | Line 4,372: | ||
dim @a(12) ' the animals |
dim @a(12) ' the animals |
||
Push |
Push "yang", "yin" ' fill Ying/Yang table |
||
For i = 1 to 0 |
For i = 1 to 0 Step -1 : @y(i) = Pop() : Next i |
||
' fill Elements table |
' fill Elements table |
||
Push |
Push "Wood", "Fire", "Earth", "Metal", "Water" |
||
For i = 4 to 0 |
For i = 4 to 0 Step -1 : @e(i) = Pop() : Next i |
||
' fill Animals table |
' fill Animals table |
||
Push |
Push "Rat", "Ox", "Tiger", "Rabbit", "Dragon", "Snake" |
||
Push |
Push "Horse", "Goat", "Monkey", "Rooster", "Dog", "Pig" |
||
Push Dup("Dog"), Dup("Pig") |
|||
For i = 11 to 0 step -1 : @a(i) = Pop() : Next i |
For i = 11 to 0 step -1 : @a(i) = Pop() : Next i |
||
Line 4,412: | Line 4,411: | ||
0 OK, 0:1047 |
0 OK, 0:1047 |
||
</pre> |
</pre> |
||
=={{header|UNIX Shell}}== |
=={{header|UNIX Shell}}== |
||
{{works with|Bash|4+}} |
{{works with|Bash|4+}} |