lundi 21 août 2017

How to call a user input in a method in ruby

I'm trying to make this send the user input number to the function but I don't know what I'm doing wrong. Can anyone help me?

puts "\n Amount with decimals:\n "

STDOUT.flush

numb = gets

puts "\n Multiplier:\n "

STDOUT.flush

mult = gets

stoque(0.01, numb, 0.5, mult, 1)

Aucun commentaire:

Enregistrer un commentaire