--- draft: draft ---

Code Examples

By Amr

echo "Hello World"

Estimated reading time: 2 minutes

Edit on Github
Table of Contents
echo "Hello World"

int main(void)
    puts("Hello, world!");
int main()
    std::cout << "Hello, world!
    return 0;
using System;
class Program
    public static void Main(string[] args)
        Console.WriteLine("Hello, world!");
console.log 'Hello, world!'
<p>Hello World!</p>
import javax.swing.JFrame;  //Importing class JFrame
import javax.swing.JLabel;  //Importing class JLabel
public class HelloWorld {
    public static void main(String[] args) {
        JFrame frame = new JFrame();           //Creating frame
        frame.setTitle("Hi!");                 //Setting title frame
        frame.add(new JLabel("Hello, world!"));//Adding text to frame
        frame.pack();                          //Setting size to smallest
        frame.setLocationRelativeTo(null);     //Centering frame
        frame.setVisible(true);                //Showing frame
document.write('Hello, world!');
$("body").append("Hello world!");
disp('Hello, world!')
program HelloWorld;
  WriteLn('Hello, world!');
print "Hello, world!";
print "Hello, world!"
cat('Hello, world!')
puts "Hello, world!"
println("Hello, world!")
MsgBox "Hello, World!"
Module Module1
    Sub Main()
        Console.WriteLine("Hello, world!")
    End Sub
End Module