Difference between revisions of "Ruby:Hello World"

From Progzoo
Jump to: navigation, search
(New page: <p> The number one program is <b>Hello World</b>. This program prints the string "Hello World". </p> ==Hello world== <question xmlns:htm="http://www.w3.org/1999/xhtml" lang="rb" className=...)
 
 
Line 1: Line 1:
<p>
+
{{topTenTips}}
 +
<question lang="rb" className="Hello"><p>
 
The number one program is <b>Hello World</b>.
 
The number one program is <b>Hello World</b>.
 
This program prints the string "Hello World".
 
This program prints the string "Hello World".
</p>
+
</p><prog>
==Hello world==
+
<question xmlns:htm="http://www.w3.org/1999/xhtml" lang="rb" className="Hello"><prog>
+
 
puts "Hello world"
 
puts "Hello world"
 
</prog>
 
</prog>

Latest revision as of 21:24, 31 December 2007

The number one program is Hello World. This program prints the string "Hello World".

puts outputs a value (or a load of values) to the standard output. It also starts a new line.

[Font] [Default] [Show] [Resize] [History] [Profile]