Math


#1

Hello,

I have a little question (I’m beginning with Ruby).

In this part, we are asked to make some math.

Why all the results are on the same line, and not, one result on one line?


#2

because you use print:

https://stackoverflow.com/questions/5018633/what-is-the-difference-between-print-and-puts

print does not add a new line character by default.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.