Welcome to the Ruby tutorial.
Computer programs consist of many machine instructions. Nobody has time to write machine instructions, so programming languages have been designed. One of these languages is Ruby.
We create a program that outputs “Hello, World” to the screen.
Copy the code below and save the file as hello.rb
puts "Hello, World!";
Then run the program with:
If the program runs fine, you’ll see this output:
- Create a program that outputs your name
- Create a program that outputs your address (multiple lines).