Answers for "Programming Ruby"

0

ruby for programmers

irb(main):001:0> "Hello World"
=> "Hello World"
Posted by: Guest on January-13-2021
0

ruby for programmers

irb(main):002:0> puts "Hello World"
Hello World
=> nil
Posted by: Guest on January-13-2021
0

ruby for programmers

irb(main):003:0> 3+2
=> 5
Posted by: Guest on January-13-2021
0

ruby for programmers

irb(main):007:0> a = 3 ** 2
=> 9
irb(main):008:0> b = 4 ** 2
=> 16
irb(main):009:0> Math.sqrt(a+b)
=> 5.0
Posted by: Guest on January-13-2021
0

ruby for programmers

irb(main):006:0> Math.sqrt(9)
=> 3.0
Posted by: Guest on January-13-2021
0

ruby for programmers

irb(main):004:0> 3*2
=> 6
Posted by: Guest on January-13-2021

Browse Popular Code Answers by Language