+ 2

How can i print the question for an input in a ruby pgm?

that is the input must be taken after the question prints. and the result after taking the value in. for example in this code I want the question before the input is taken https://code.sololearn.com/c7wQ2yQpSoM2/?ref=app

10th Nov 2017, 5:52 PM
vishnupriya
vishnupriya - avatar
5 Answers
+ 2
so what about if I run the attached program in a lap or else.is the pgm is correct?
10th Nov 2017, 6:04 PM
vishnupriya
vishnupriya - avatar
+ 2
@ immortal thanks a lot
10th Nov 2017, 6:11 PM
vishnupriya
vishnupriya - avatar
+ 1
thank you
10th Nov 2017, 6:14 PM
vishnupriya
vishnupriya - avatar