RosettaCodeData/Task/Conditional-structures/Smalltalk/conditional-structures-2.st
2023-07-01 13:44:08 -04:00

1 line
50 B
Smalltalk

abs := x > 0 ifTrue: [ x ] ifFalse: [ x negated ]