class WorldController < ApplicationController def hello render :text => 'Hello world' end
>>> x = int(raw_input("Please enter an integer: ")) >>> if x < 0: ... x = 0 ... print 'Negative changed to zero' ... elif x == 0: ... print 'Zero' ... elif x == 1: ... print 'Single' ... else: ... print 'More'
class helloworldprog { public static void main(String args[]) { System.out.println("Hello World!"); } }
<? foreach ($list as $key => $value): ?> <?= $key ?>: <?= $value ?> <? endforeach; ?>
#include<stdio.h> main() { printf("Hello World"); }
foreach my $item (@stuff) { if ($item =~ /foobar/i) { print "$item\n"; } }
10 PRINT "Hello World!" 20 GOTO 10
<% Response.Write("Hello World!") %>
SELECT id FROM kittens WHERE furry IS NOT NULL;
1 0 1 0 0 1 1 0 1 1
<address> 1234 somewhere lane <br /> Foobar, TX<br /> </address>
799 S = FLOATF (IA + IB + IC) / 2.0 AREA = SQRT( S * (S - FLOATF(IA)) * (S - FLOATF(IB)) * + (S - FLOATF(IC))) WRITE OUTPUT TAPE 6, 601, IA, IB, IC, AREA 601 FORMAT (4H A= ,I5,5H B= ,I5,5H C= ,I5,8H AREA= ,F10.2, + 13H SQUARE UNITS) STOP END