Login
|
Signup
langref.org
-
ruby
,
cpp
,
fsharp
,
clojure
...
add..
all
erlang
fantom
go
groovy
haskell
java
ocaml
perl
php
python
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
ruby
puts "Hello World!"
puts "Hello World!"
ruby
$stdout<<"Hello World!"
$stdout<<"Hello World!"
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");
}
fsharp
printfn "Hello World!"
#light
printfn "Hello World!"
clojure
(println "Hello World!")
(println "Hello World!")
csharp
System.Console.WriteLine("Hello World!")
class SolutionXX
{
static void Main()
{
System.Console.WriteLine("Hello World!")
}
}
Submit a new solution for
ruby
,
cpp
,
fsharp
,
clojure
...
There are 17 other solutions in
additional
languages (
erlang
,
fantom
,
go
,
groovy
...)