Quick actions

cmd+k|ctrl+k

Navigation

Languages

The One And Only Negative Machine! :D (there may be others though. D:)

Snippet info

Language

Nim

Visibility

public

Author

bluecinderbox91-the-g.o.a.t.

Created

2019-05-12T23:28:07Z

Updated

2019-05-12T23:28:07Z

reset
cleartext
to Negative_Machine :Negative :n
if :Negative = 0[
  output :n
]
if :Negative = 1[
  output :n - 2 * :n
]
end
print Negative_Machine 0 100
print Negative_Machine 1 1.75
INFO