a=gets.to_i
b=gets.to_i
this code gets input like this
2
2
but in c++ std::cin will get input after space or \n
So how do I make ruby get input like std::cin
I am new to ruby and can not find the answer on google so help would be appreciated thanks