IHYPRESS PROGRAMMING
CGI/Ruby programs with code and output for beginners
Ruby logo
HOME | ASP | C | CSS | GNUPLOT | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
Ruby (CGI Programming) ❯ String Literals
<14>
#!/usr/bin/ruby puts "Content-type: text/html\n\n" #!/usr/bin/ruby -w puts "<div style='font-family:sans-serif;color:blue;font-size:1.2em;'>The number of seconds in a day is : #{24*60*60}.</div>"; puts "<div style='font-family:sans-serif;color:blue;font-size:1.2em;'>Double \\\\ to display \\</div>"; puts "<div style='font-family:sans-serif;color:blue;font-size:1.2em;'>That's right!</div>";
Hergestellt in Deutschland / Made in Germany
The number of seconds in a day is : 86400.
Double \\ to display \
That's right!
COPYRIGHT © 2015-2025 IHY PRESS Frankfurt am Main 60329 Deutschland