+ 1

using cmd for ruby

How do you start a new line in cmd when using ruby? for example, i wanted to say hello world and next line to have a number problem. puts 'hello world!' 1 + 2 output: hello world ! 3 but instead i get an error. or it does not display the number

23rd Jul 2019, 5:27 PM
Sebastien Pham
Sebastien Pham - avatar
1 Resposta
+ 7
Sebastien Pham are you printing the number too like that puts "hello world! " puts 1+1 and what error are you facing can you please describe more about that
23rd Jul 2019, 5:34 PM
GAWEN STEASY
GAWEN STEASY - avatar