C
#include <stdio.h>
int main(void)
{
printf("Hello, world!");
return 0;
}
C++
#include <iostream>
int main(void)
{
std::cout << "Hello, world!";
return 0;
}
Java
class HelloWorld {
static public void main( String args[] ) {
System.out.println( "Hello, world!" );
}
}
Go
package main
import "fmt"
func main() {
fmt.Println("Hello, world!")
}
PHP
echo 'Hello, world!';
Perl
print "Hello, world!";
Python
'Hello, world!';
Ruby
puts 'Hello, world!'