Entry 3641

enums 2

   

Submitted by nddrylliog on April 24, 2010 at 12:47 a.m.
Language: Ooc. Code size: 224 bytes.

Multiples: enum(*2) { x=1, y ,z }
Sums: enum (+4) { a, b, c }

main: func {
    "x=%d y=%d z=%d" format(Multiples x, Multiples y, Multiples z) println()
    "a=%d b=%d c=%d" format(Sums a, Sums b, Sums c) println()
}

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).