IHYPRESS PROGRAMMING
CGI/Ruby programs with code and output for beginners
classic asp
HOME | ASP | C | CSS | GNUPLOT | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
Ruby (CGI Programming) ❯ Counting Loops
<05>
#!/usr/bin/ruby -w print "Content-type: text/html\n\n" puts "<html><body style=\"font-size:1.5em;color:#330033;\">" 4.times do puts "Hello! " end puts "<br><br>" count = 0 5.times do count = count + 1 puts "Count= " + count.to_s + "<br>" end puts "</body></html>";
Hergestellt in Deutschland / Made in Germany
Hello! Hello! Hello! Hello!

Count= 1
Count= 2
Count= 3
Count= 4
Count= 5
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland