Ruby Basic(Essential)
basic for ruby programming language reference : https://www.tutorialspoint.com/ruby/ruby_syntax.htm
5 flashcards · Programming Languages · by Daniel Blackbird
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!
write a code that contains a function name hi that print hello world def hi puts "Hello World!" end hi()
assign number 2 to variable a a=2
how calculator this exp? 3+2 3+2 3*2 3*2 3^2 3**2 -------------------------
write a code write Hello world puts "hello , world"; output: hello , world