Ruby Basic(Essential)

basic for ruby programming language reference : https://www.tutorialspoint.com/ruby/ruby_syntax.htm

5 flashcards · Programming Languages · by Daniel Blackbird

  1. write a code that contains function names hi that print hello {name} name is an input parameter def hi(name) puts "Hello #{name}!" end hi("Matz") Hello Matz!

  2. write a code that contains a function name hi that print hello world def hi puts "Hello World!" end hi()

  3. assign number 2 to variable a a=2

  4. how calculator this exp? 3+2 3+2 3*2 3*2 3^2 3**2 -------------------------

  5. write a code write Hello world puts "hello , world"; output: hello , world