Why is it quitting? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is it quitting?

Hey, Well so I am new to coding so sorry if the question might seem stupid. When i start the .rb it starts but close directly. like it executes the codes but then close it. Is they a way to not close it at the end ?

7th Nov 2016, 5:59 PM
Pain
Pain - avatar
2 Answers
+ 2
while I know nothing of ruby I imagine you are sinply running through the code without adding a delay or something that waits for input, because of this the program is done with all of its instructions so it simply terminates and closes the command line window
8th Nov 2016, 4:36 AM
Null Void
Null Void - avatar
0
Yea i knew. I have to find a way to keep it
8th Nov 2016, 7:10 AM
Pain
Pain - avatar