Hello, World!

Published on

Hello world written in a few languages just to say hello...

C

#include <stdio.h>

int main()
{
    printf("Hello, world!\n");
    return 0;
}
$ cc hello.c && ./a.out
Hello, world!

C#

Console.WriteLine("Hello, world!");
$ dotnet run
Hello, world!

Zig

const std = @import("std");

pub fn main() !void {
    const stdout = std.io.getStdOut().writer();
    try stdout.print("Hello, {s}!\n", .{"world"});
}
$ zig build-exe hello.zig
$ ./hello
Hello, world!