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");
"Hello World" |> IO.puts
IO.puts "Hello World"
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');
System.out.println("Hello World");
println("Hello world!")
(princ "Hello, world!")
(format T "Hello World")
(print "Hello World")
print("Hello World")
#import <stdio.h>
NSLog(@"Hello world\n");
echo "Hello World" . PHP_EOL;
<?php echo 'Hello World'; ?>
<?='Hello World'?>
WriteLn('Hello, world!');
print "Hello, world!\n";
use 5.010;
say 'Hello World';
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!")