Running ruby in VSCode

28 views Asked by At

I've installed ruby lsp and code runner extensions in VScode.

I'm running the following code in VScode

puts ("enter a number")
x = gets.to_i
puts ("enter a second number")
y = gets.to_i
result = x + y
puts result

IN terminal panel it says

"running C:\Users\Asus\ruby\helloworld.rb" The program is not running

0

There are 0 answers