C:
#include <stdio.h>
int main() {
printf("hello, world!\n");
return 0;
}
Java:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("hello, world!");
}
}
C++:
#include <iostream>
int main() {
std::cout << "hello, world!";
return 0;
}
C#:
using System;
class Program
{
static void Main(string[] args)
{
Console.WriteLine("hello, world!");
}
}
PHP:
<?php
echo "hello, world!";
?>
Lisp:
(print "hello, world!)
Visual Basic:
Sub Main()
Write("hello, world!")
End Sub
易:
Sub Main()
WriteLn("hello, world !")
End Sub
Python:
print("hello, world!")