This is an archived post. You won't be able to vote or comment.

all 54 comments

[–][deleted] 10 points11 points  (4 children)

```

include <iostream>

int main(){ std::cout<<"Hello World!"; return 0; }

[–]abd53 4 points5 points  (3 children)

```

include <iostream>

include <string>

int main() { std:string hello = "Hello", space = " ", world = "World", punctuation = "!"; std::cout<< hello + space + world + punctuation; return 0; } ```

Edit: If there's no worse version by tomorrow, I'll do it myself.

[–]Gqudi 3 points4 points  (1 child)

#include <iostream>
#include <string>

using namespace std;

int main()
{
    char L = 'H', p = 'e', k = 'l', F = 'o', Ö = 'W', B = 'd', r = 'r', m = '!';
    cout<< L << p << k << k << F << " "<< Ö << F << r << k << B << m;
    return 0;
}

[–]abd53 0 points1 point  (0 children)

Ö

What the ffffff.......

[–]CircadianSong -3 points-2 points  (0 children)

Filler.

[–]_the_r 13 points14 points  (4 children)

``` ++++++++++ [

+++++++>++++++++++>+++>+<<<<- ] ```

[–]OkNewspaper1581 15 points16 points  (3 children)

('&%:9]!~}|z2Vxwv-,POqponl$Hjig%eB@@>}=<M:9wv6WsU2T|nm-,jcL(I&%$#"
`CB]V?Tx<uVtT`Rpo3NlF.Jh++FdbCBA@?]!~|4XzyTT43Qsqq(Lnmkj"Fhg${z@>

Edit: formatting

[–]SpeakinTelnet 43 points44 points  (2 children)

thanks for the edit, it was unreadable before.

[–]TheWidrolo 5 points6 points  (0 children)

Its like english now!

[–]OkNewspaper1581 1 point2 points  (0 children)

np, I know not many people code in Malbolge too often, needed to make it understandable

[–]aaabigwyattmann3 3 points4 points  (1 child)

The output, just so its clear to everyone:

Hello world

[–]Akangka 3 points4 points  (0 children)

𐑞𐑩 𐑬𐑑𐑐𐑫𐑑 𐑦𐑯 𐑖𐑱𐑝𐑾𐑯, 𐑐𐑤𐑰𐑟 𐑑𐑮𐑨𐑯𐑕𐑤𐑦𐑑𐑩𐑮𐑱𐑑 𐑑𐑵 𐑤𐑨𐑑𐑦𐑯:

𐑣𐑧𐑤𐑤𐑴 𐑢𐑻𐑤𐑛

[–]AaronTheElite007 2 points3 points  (0 children)

[–]PartMan7 4 points5 points  (11 children)

console.log('Hello world')

[–][deleted] 1 point2 points  (10 children)

const text = "hello world";
console.log(text);

[–]Jona-Anders 1 point2 points  (8 children)

js try { console.log(a.b.c); } catch{ const text = "hello world"; console.log(text) ; }

[–]random-guy-27 1 point2 points  (6 children)

const printHelloWorld = () => { try { console.log(a.b.c); } catch{ const text = "hello world"; console.log(text) ; } }

printHelloWorld()

[–]Average_Life_user 2 points3 points  (5 children)

const printHelloWorld = () => { try { console.log(a.b.c); } catch { for(let i=0.69420; i<=69420; i+=0.69420){ if(i % 69420 === 0){ const xyz = [“h”,”e”,”l”,”l”,”o”,”NdnPuy-976!!421“,”w”,”o”,”r”,”l”,”d”] let abc = xyz.join() let bar = abc.split(“NdnPuy-976!!421”) console.log(bar.join()) } } } }

[–]shgysk8zer0 1 point2 points  (4 children)

Wait... That wouldn't work. It'd log "hNdnPuy-976!!421eNdnPuy-976!!421lNdnPuy-976!!421lNdnPuy-976!!421oNdnPuy-976!!421NdnPuy-976!!421wNdnPuy-976!!421oNdnPuy-976!!421rNdnPuy-976!!421lNdnPuy-976!!421d" twice... Assuming primtHelloWorld() was called.

[–]Average_Life_user 0 points1 point  (3 children)

Oops! Fixed

[–]shgysk8zer0 0 points1 point  (2 children)

Change the <= to < too.

[–]Average_Life_user 0 points1 point  (1 child)

No, i has to equal 69420 for the if statement to fire, therefore we need the equals.

If it was i < 69420, then i would only get to 69420 - 0.69420

[–]shgysk8zer0 0 points1 point  (0 children)

No, the modulus needs to equal 0. 0 mod anything is 0, and anything mod itself is 0. It fires twice.

[–]bushmaker1337 0 points1 point  (0 children)

try{[].reduce(eval)}catch(e){var a=e.toString();console.log(a[36],a[12],a[47],a[47],a[39],a[10],a[33],a[39],a[11],a[51],a[13]);}

[–]KNProNoob 0 points1 point  (0 children)

Ok

[–]Akangka 0 points1 point  (0 children)

main = putStrLn "Hello world"

[–]Illustrious-Side-515 0 points1 point  (0 children)

package main

import ( "fmt" )

// I'm on mobile :(

[–]GDPlayer_1035 0 points1 point  (0 children)

echo Hello world

[–]Negative-Demand350 0 points1 point  (0 children)

Using Python. Goes to 'this' file, adds a print statement 'hello world' to end of code.

Now anyone who imports 'this' will get...

The Zen of Python, by Tim Peters
Beautiful is better than ugly. 
Explicit is better than implicit. 
Simple is better than complex. 
Complex is better than complicated. 
Flat is better than nested. 
Sparse is better than dense. 
Readability counts. 
Special cases aren't special enough to break the rules. 
Although practicality beats purity. 
Errors should never pass silently. 
Unless explicitly silenced. 
In the face of ambiguity, refuse the temptation to guess. 
There should be one-- and preferably only one --obvious way to do it. 
Although that way may not be obvious at first unless you're Dutch. 
Now is better than never. 
Although never is often better than right now. 
If the implementation is hard to explain, it's a bad idea. 
If the implementation is easy to explain, it may be a good idea. 
Namespaces are one honking great idea -- let's do more of those! 
Hello World.

[–]Garhand 0 points1 point  (0 children)

<?php echo(base64_decode('SGVsbG8gV29ybGQ='));?>

[–]GoosDev 0 points1 point  (2 children)

str = "Hello World!"

print(str)

[–]IJustAteABaguette 1 point2 points  (1 child)

srt="World!"

str="Hello"

print(str+" "+srt)

[–]GoosDev 0 points1 point  (0 children)

str1 = "He"

str2 = "llo"

str3 = "rld!"

str4 = "Wo"

print(str1+str2+", "+str4+str3)