File tree Expand file tree Collapse file tree
1_Introduction/2_Hello_World Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- print 'Hello World'
1+ print 'Hello World'
Original file line number Diff line number Diff line change 11# Say Hello World in Ruby
22
3+ ---
4+
5+ * You will learn:*
6+ - how to print to the standard otuput
7+
8+ ---
9+
310In Ruby you can print to the standard output by using the * print* method.
411If you want to print a new line you can use the * puts* (or the shorter * p* )
512method.
@@ -14,10 +21,10 @@ and turns them into a String before printing to the the standard output
1421The two * ''* declare a Ruby String object. You can also use * ""* to create a
1522String. We will discuss the difference of * ''* and * ""* later on.
1623
17- ## For now, let's do the Hello World example in Ruby:
24+ For now, let's do the Hello World example in Ruby:
1825
1926-----
2027
21- Print out * Hello* * World* to the standard output!
28+ Print out * Hello World* to the standard output!
2229
2330-----
You can’t perform that action at this time.
0 commit comments