IHYPRESS.NET
RUBY
HOME | ASP | C | CSS | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
Earn Free Bitcoin
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>";
The number of seconds in a day is : 86400.
Double \\ to display \
That's right!
COPYRIGHT © 2015-2024 IHYPRESS.NET. A DIVISION OF IHY PRESS. ALL RIGHTS RESERVED.