Login
|
Signup
langref.org
-
csharp
,
erlang
, and
cpp
add..
all
clojure
fantom
fsharp
go
groovy
haskell
java
ocaml
perl
php
python
ruby
scala
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Strings
Printing
Output a string to the console
Write the string
"Hello World!"
to STDOUT
csharp
System.Console.WriteLine("Hello World!")
class SolutionXX
{
static void Main()
{
System.Console.WriteLine("Hello World!")
}
}
erlang
io:format("Hello, World!~n").
-module(hello).
-export([start/0]).
start() ->
io:format("Hello, World!~n").
cpp
std::cout << "Hello World" << std::endl;
include <iostream>
int main()
{
std::cout << "Hello World" << std::endl;
}
cpp
std::printf("Hello World\n");
include <cstdio>
int main()
{
std::printf("Hello World\n");
}
cpp
C++/CLI .NET 2.0
Console::WriteLine(L"Hello World");
using namespace System;
int main()
{
Console::WriteLine(L"Hello World");
}
Submit a new solution for
csharp
,
erlang
, or
cpp
There are 20 other solutions in
additional
languages (
clojure
,
fantom
,
fsharp
,
go
...)