+ 2

In my calculator seems to be a problem with the input or do I need an extra interpreter

I have to enter all the input at the beginning and not when it is " called". I installed ruby on my Laptop and entered the code in a txt file. Then I ran this file with the interpreter. There it partially worked

11th Oct 2017, 4:50 PM
Lars I.
Lars I. - avatar
5 Answers
+ 10
For console apps, Code Playground requires all input to be fed to the compiler/interpreter prior to code compilation/interpretation.
11th Oct 2017, 5:09 PM
Hatsy Rei
Hatsy Rei - avatar
+ 6
No, in the Code Playground it will always be a console app.
11th Oct 2017, 5:19 PM
The Coding Sloth
The Coding Sloth - avatar
+ 5
thank you guys
11th Oct 2017, 6:15 PM
Lars I.
Lars I. - avatar
+ 3
so i can only write code without userinput?
11th Oct 2017, 6:06 PM
Lars I.
Lars I. - avatar