IHYPRESS PROGRAMMING
CGI/Ruby programs with code and output for beginners
HOME
|
ASP
|
C
|
CSS
|
GNUPLOT
|
HTML
|
JAVASCRIPT
|
PERL
|
PHP
|
PYTHON
|
RUBY
|
SVG
Ruby (CGI Programming)
❯ Output Statements
<19>
#!/usr/bin/ruby puts "Content-type: text/html\n\n" #puts vs. print #puts adds a \n at the end 5.times do puts "Z" end #print does not 5.times do print "Z" end
Z Z Z Z Z ZZZZZ
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland