Logo

Programming-Idioms

Print a literal string on standard output
New implementation

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating material.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
with Ada.Text_IO;
use Ada.Text_IO;
Put_Line ("Hello World!");
#include <stdio.h>
printf("Hello World\n");
print_endline "Hello World!"
(println "Hello World")
DISPLAY "Hello World!".
#include <iostream>
std::cout << "Hello World" << std::endl;
using System;
Console.WriteLine("Hello, World!");
pragma(msg, "Hello World");
import std.stdio;
writeln("Hello world!");
print("Hello World");
IO.puts "Hello World"
"Hello World" |> IO.puts
io:format("~s~n", ["Hello, world!"])
print *, 'Hello, world!'
import "fmt" 
fmt.Println("Hello World")
println 'Hello World'
putStrLn "Hello world!"
document.write("Hello World!");
console.log('Hello World');
console.log('Hello World')
System.out.println("Hello World");
import static java.lang.System.out;
out.print("Hello, World!");
println("Hello world!")
(print "Hello World")
(format T "Hello World")
(princ "Hello, world!")
print("Hello World")
io.write("Hello world")
#import <stdio.h>
NSLog(@"Hello world\n");
echo "Hello World" . PHP_EOL;
<?php echo 'Hello World'; ?>
<?='Hello World'?>
WriteLn('Hello, world!');
use 5.010;
say 'Hello World';
print "Hello, world!\n";
write('Hello, world!\n')
format("Hello world~n")
print('Hello World')
print("Hello World")
puts 'Hello World'
println!("Hello World");
println("Hello, World!")
(display "Hello World")
Transcript cr; show: 'Hello World!'
System.Console.WriteLine("Hello World!")