Ruby Playground - Mathematical Cal using nested if: Online Interpreter, Compiler & Editor | Sololearn