Mega Code Archive

 
Categories / Ruby / Language Basics
 

Unary operators, + and -, which indicate negative and positive numbers

puts +7 + -5 puts -20 + 32 puts -20 - +32 puts 20 * -8