From Atom Preferense Install platformio-ide-terminal
Dos windows are added to the ATM.
Run with ruby giraffe.rb
puts "Enter Your Name" name = gets put ("Hello " + name)
Enter Your Name Mike
Hello Mike
puts "Enter Your Name" name = gets put ("Hello " + name ", you are cool!")
Enter Your Name Mike
Hello Mike , you are cool!
Line breaks occur. To avoid this, chomp ()
puts "Enter Your Name" name = gets.chomp() age = gets.chomp() put ("Hello " + name ", you are" + age)
Enter Your Name Mike
Hello Mike, you are cool!
Recommended Posts