[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

QUICK WRITE A PROGRAM THAT OUTPUTS HELLO WORLD OR I'LL

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 194
Thread images: 23

File: b118f3cdc798fa6cb599488f81ea38d2.jpg (508KB, 1000x1000px) Image search: [Google]
b118f3cdc798fa6cb599488f81ea38d2.jpg
508KB, 1000x1000px
QUICK

WRITE A PROGRAM THAT OUTPUTS HELLO WORLD OR I'LL MAKE YOU BRUSH MY TAIL
>>
public class HelloWorld {
public static void main(String[] args) {
System.out.print("Hello World!")
}
}
>>
>>57969007
What if I want to brush your tail anyways?
>>
>>57969007
How would an anime even force me to do something?
>>
#!/bin/sh
echo 'Hello World'


Can I brush it anyway?
>>
>>57969078
You're going to say no to a cute loli like that? Imagine how happy you'll make her.
>>
>>57969007
main() {
println!("Hello, world!");
}
>>
>>57969007

>slowly and deliberately unplugs desktop

Oops.
I guess I'll have to get the brush.
>>
Output (8,1,"Hello World")
>>
>>57969089
>boobs
>loli
pick one
>>
print('Hello World')
>>
>>57969007
print("I want to brush your tail")
>>
#include <studio.h>

int main() {
printf("hello world");
return zero;
}
>>
>>57969007
Who else is waiting for the mods?
Just me?
Oh... Okay...
>>
#include <stdio.h>

main(){
printf("Hello world!")
}
>>
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
>>
File: anal beads.png (28KB, 775x489px) Image search: [Google]
anal beads.png
28KB, 775x489px
>>
>>57969007
#include <stdio.h>
void *main(void)
{
printf("%c%c%c%c%c%c%c%c%c%c%c%c", 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x0a);
return NULL;
}
>>
h = "H"
e = "e"
l = "l"
l2 = "l"
o = "o"
space = " "
w = "w"
o2 = "o"
r = "r"
l3 = "l"
d = "d"
exclamation_mark = "!"
print(h + e + l + l2 + o + space + w + o2 + r + l3 + d + exclamation_mark)
>>
>>57969007
But... but I want to brush it...
>>
#include <openssl/sha.h>
#include <stdio.h>
#include <string.h>

void increment (char *data, size_t length)
{
if (length == 0) {
return;
}

if (*data < 127) {
++*data;
} else {
*data = 0;
increment (data+1, length-1);
}
}

int main (void)
{
char data[15] = {0};
size_t length = sizeof(data);

unsigned char hello_hash[SHA_DIGEST_LENGTH] = {
0x9d, 0x57, 0xe2, 0xb0, 0xaa,
0x39, 0x17, 0x4a, 0x76, 0x84,
0xc1, 0xfb, 0x9c, 0xd0, 0xda,
0xb7, 0xf8, 0x13, 0xe7, 0xac,
};

while (1) {
unsigned char hash[SHA_DIGEST_LENGTH];
SHA1(data, length, hash);

if (memcmp(hello_hash, hash, SHA_DIGEST_LENGTH) == 0) {
printf("%s", data);
return 0;
}

increment(data, length);
}
}

eventually
>>
hello world
>>
>>57969007
<?php
echo "Hello world!";
?>
>>
default {
state_entry() {
llSay(0, "HELLO WORLD OR I'LL MAKE YOU BRUSH MY TAIL");
}
}
>>
>>57969052
awk 'NR == 3 
{
for(i=6 i<NF; i++)
{
print $i
}
}
>>
Main ()
{
Cout ("hello world also can i brush it?")
}
>>
File: Capture.png (50KB, 1634x741px) Image search: [Google]
Capture.png
50KB, 1634x741px
>>57969007
>>
niggers = "Hello world!"

print(niggers)
>>
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
>>
>>57970181
>>57969275
>When someone beats you to it
:[
>>
File: 2695874.jpg (10KB, 300x169px) Image search: [Google]
2695874.jpg
10KB, 300x169px
>>57969007
Can't do it, guess I'll have to brush your tail.
>>
print("Hello, world!")
>>
>>57969078
How would a picture on the Internet tell me what to do?
I ain't gonna write you a single line of code.
>>
10 PRINT "HELLO WORLD"
20 GOTO 10
>>
javascript:b=document.body;b.innerHTML="";b.style.overflow="hidden";c=document.createElement("canvas");r=(a)=>Math.random()*a;x=c.getContext("2d");for(Z in x)x[Z[0]+(Z[6]||Z[2])]=x[Z];w=c.width=innerWidth;h=c.height=innerHeight;b.appendChild(c);x.textAlign="center";x.lineWidth=3;n=()=>{requestAnimationFrame(n);x.fillStyle="rgba(255,255,255,0.2)";x.fc(0,0,w,h);x.font=80+r(10)+"px comic sans ms";x.sv();x.ta(w/2+r(10),h/2+r(10));x.rt(Math.sin(new Date)/10);x.sT("Hello world",r(5),r(5));x.rr()};n();


Put it into the address bar and have fun
>>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Quiz</title>
</head>
<body>
<p>Hello world!</p>
</body>
</html>
>>
>>57970738
Also note, on Chrome (at least), Copy/paste strips the initial "javascript:" (probably to avoid XSS). So you're gonna have to put it back manually
>>
>>57969007
#!/bin/sh
printf 'HELLO WORLD OR I'\''LL MAKE YOU BRUSH MY TAIL'
>>
// coded this on my phone pls no bully 
document.addEventListener("DOMContentLoaded", function(event) {
var element = document.createElement("span") ;
element.innerHTML = "Hello World!";
document.body.appendChild(element);
});

>>
const logText = opts => {
if (
opts
&& opts.text
&& opts.text.length
&& opts.text.length === seedText.length
&& console
&& console.log
&& typeof console.log === "function"
) {
console.log(opts.text.join(""));
}
};

const seedText = "Hello world";
let textToLog = [];

Array(seedText.length).fill().map((_, i) => {
typeof i === "number"
&& (seedText[i] != undefined)
&& (textToLog.length < seedText.length)
&& (textToLog.push(seedText[i]));
});

logText({ text: [...textToLog].map(char => char && (char)) });
>>
(=<`#9]~6ZY32Vx/4Rs+0No-&Jk)"Fh}|Bcy?`=*z]Kw%oG4UUS0/@-ejc(:'8dc
>>
HAI 1.2
CAN HAS STDIO?
VISIBLE "Hello world."
KTHXBYE
>>
Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook.
Ook! Ook. Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook?
Ook! Ook! Ook? Ook! Ook? Ook. Ook. Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook! Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook.
Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook.
Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook.
Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook!
Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook! Ook.
>>
File: terry.png (4MB, 1700x1700px) Image search: [Google]
terry.png
4MB, 1700x1700px
"Hello world";
>>
(print "HELLO WORLD") 
>>
Echo "Good luck reinventing the wheel progfags"
>>
"Hey can you say the words "Hello World"? Trust me it's important."
>>
>>57969007
I'm going to brush that tail
>>
>>57970098
>tens and tens of lines of codes just to output "hello world"
Sepples truly is the worst.
>>
>say "Hello world"
>>
File: 1439084116786s.jpg (16KB, 250x250px) Image search: [Google]
1439084116786s.jpg
16KB, 250x250px
>>57969191
you got 2 choices:

1. Write hello world program

2. Brush tail

what's it going to be faggot?
>>
@echo off
:start
echo "hello world"
goto start
>>
Here you go:

#define/**/install/**/0[x]=045;p(j);p(k);for(;;){++l;m++;++q;r++;
#define gentoo if((l-44)>>6){p(l);p(l);break;}}m|=3;q^=27;p(m); \
r+=6;t>>=2;t+=7;p(t);p(q);p(m);p(r);p(l) ;p(s); t++;p(t) ;p(10);}
#define/**/i/**/int/*/a/ /b/ /c/ /d/ /e/ /f/ /g/ /gif/ /h/ /hr/*/
#define/**/c/* */char/*/k/ /m/ /o/ /p/ /r/ /s/ /t/ /u/ /v/ /vg/*/
#define/**/Anonymous/**/1[x] b-1;i Mon b;j+=4;k++;i a=// /vr/ /w/
#define/* */b/* */=0144/* /wg/ /i/ /ic/ /r9k/ /s4s/ /cm/ /hm/ */
c x[2];i j b,No b,k b,l b,m b,q b,r b,s b,t b;main(){ //lgbt/ /y/
#define p(o) printf(x, o) //3/ /aco/ /adv/ /an/ /asp/ /biz/ /cgl/


Anonymous 12/12/16*(Mon)*19;55;11*No*57972012;

install gentoo
>>
#include<studio.h>
#include<strings.h>

char toPrint[10];
char setString[10];
int sizeof;

void startLoop(int sizeof, char string[]){
for(int i = 0; i <= sizeof; i++){
setLetterArray(setString[i], sizeof);
}
printOutput(sizeof);
}

void printOutput(int sizeof){
for(int i = 0; i <= sizeof; i++){
printf("%c", toPrint[i]);
}
}

void setLetterArray(char letter, int sizeof){
if(!finalized){
for(int i = 0; i <= sizeof; i++){
if(toPrint[i] == ''){
toPrint[i] = letter;
}
}
}
}

int main(){
strcpy(setString, "hello world");
startLoop(strlen(toPrint), toPrint);
}
}


Did it work? No? Guess I'll have to brush, then
>>
File: hqdefault-1.jpg (39KB, 360x266px) Image search: [Google]
hqdefault-1.jpg
39KB, 360x266px
org  0x100
mov dx, msg
mov ah, 9
int 0x21
mov dl, 0x0d
mov ah, 2
int 0x21
mov dl, 0x0a
mov ah, 2
int 0x21
mov ah, 0x4c
int 0x21
msg db 'Hello world, lemme brush dat tail!$'
>>
>>57969007
console.log("HELLO WORLD");

Also i will still brush your tail i am a weaboo faggot with no friends or social skills.
>>
main = putStrLn "Hello, world."
>>
console.log("Hello World");
>>
console.log('cheeeeeeeeeeeeeeeeeeeeeeeeeeeeen'.replace(/.*/,'hello world'))
>>
>>57969007
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
}
}

Can i pat chen instead?

>>57969078
>Anime
>>57969089
>loli
>>
>>57973319
console.log("faggot thinks he knows regex hello world".replace(/.*x /,''))
>>
#include <iostream>
using namespace std;

int main (){
cout<<"Hello, World"<<endl;
return 0;
}
>>
>>57969007
I, uh.... can't do it!
>>
print("Hello world.")
>>
#include <stdio.h>

int main() {
puts("Hello world!");
return 0;
}
>>
>>57969127
They're called oppailolis, friendo
>>
File: 1477472607839.gif (206KB, 256x256px) Image search: [Google]
1477472607839.gif
206KB, 256x256px
#include <stdlib.h>
#include <stdio.h>

int main() {
const char helloWorld[] = { 72, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 33, 0 };

printf("%s\n", helloWorld);
system("pause");

return 0;
}


it just works
>>
>>57969007
(format t "Hello, world")
>>
>>57969007
<code> print 'dlrow olleh' [::-1]
</code>
>>
Hello world

>>
>touch fluffy tail
>>
>>57970207
/thread
>>
const int main[] = {
-443987883, 440, 113408, -1922629632,
4149, 899584, 84869120, 15544,
266023168, 1818576901, 1461743468, 1684828783,
-1017312735
};
>>
File: 1470812314796.png (2KB, 581x29px) Image search: [Google]
1470812314796.png
2KB, 581x29px
some people need to consider suicide
>>
>>57976458
>implying I don't like once a week
Ha ha, joke's on you!
>>
>>57974547
>system()
>>
>>57969007
<html>
<body>
<h1> Fuck this Autistic Thread </h1>
<p>Hello World!</p>
</body>
</html>
>>
console.log("Hello World!");
>>
>>57976546
>program

Markup languages are not programming
>>
package "nigger"

import "fmt"

func main() {
fmt.Println("hello world")
fmt.Println("also OP is a nigger")
}
>>
>>57969127
>>57974396

Lolis with tits are a thing but I wouldn't call that image if Ran a loli. It's just a cute art style.
>>
File: JA1y4DR.png (216KB, 2084x2135px) Image search: [Google]
JA1y4DR.png
216KB, 2084x2135px
Excuse me
#!/usr/bin/perl

my @letters = ('a'..'z',' ','!');
my $string;

sub create_string {
for ($i=0;$i<=11;$i++) {
$string = $string . $letters[int rand @letters];
};
if ($string =~ 'hello world!') {
print $string;
} else {
$string = '';
create_string();
}
}

create_string();
>>
>>57977547
Also can I brush your tail while it executes?
>>
>>57970752
firefox does this too (at least on my machine)
>>
>>57969007
#include <stdio.h>

int main(int argc, char** argv){
printf("Hello world!\n");
return 0;
}


But... can I brush your tail anyway? It looks so cute and fluffy, like you. :blush:
>>
>>57969007

puts (
%w{72 101 108 108 111 32 87 111 114 108 100}
.map { |nr| nr.to_i.chr }
.join
)
>>
>>57969490
kek
>>
>>57977862

>not checking the return value of printf
>>
>>57977862
>char** argv
It's "char *argv[]" actually
kys
>>
int main()
{
cout << "Hello world!" << endl;
return 0;
}
>>
>>57969007
 #!/usr/bin/env python print "HELLO WORLD" 


>>57969052
>>57969088
>>57969096
>>57969119
>>57969138
>>57969177
>>57969223
> MFW bitches don't know their request was case-sensitive

>>57969936
This guy's got the right idea!
>>
>>57974396
Doesn't exist out of animu.

Shit taste, bro.
>>
>>57978341
Nice one liner you got there. Shame that it's just a useless comment.
>>
SELECT 'I want to brush the fluffy tail' FROM dual;
>>
File: 1389057478618.jpg (90KB, 1280x720px) Image search: [Google]
1389057478618.jpg
90KB, 1280x720px
>>57969007
#!/bin/sh
echo "HELLO WORLD OR I'LL MAKE YOU BRUSH MY TAIL"

chmod +x program.sh
>>
>>57976512
What's wrong with it?
>>
File: 1361196168809.png (221KB, 512x384px) Image search: [Google]
1361196168809.png
221KB, 512x384px
>>57977547
I'm aware that this is a joke but jesus fucking christ
>>
(cond "hello world")
>>
"HELLO WORLD"
>>
>>57977547
kek
>>
<div>Hello world</div>

joke's on you i can't program
gimme the brush
>>
>>57969007
your tail is pretty and fluffy please let me brushy brushy
>>
>>57969007
import "fmt"

func main() {
fmt.Println("Still will brush tail")
}
>>
w-wait a minute, what if I want to brush the tail?
>>
Import l, s, x;

define main{
short.var(`HELLO WORLD`);
out.var;
end}

e.main{};
terminate;
>>
>>57969007
cringe thread?
>>
#include <stdio.h>

int main
{
puts("HELLO WORLD");
}
>>
>>57970922
I think you mean
#!/bin/sh
printf 'HELLO WORLD OR I'\''LL MAKE YOU BRUSH MY TAIL\n'
>>
>>57969007

>In ArnoldC

ITS SHOWTIME
TALK TO THE HAND "Hello World"
YOU HAVE BEEN TERMINATED
>>
File: cheeeen.png (52KB, 256x256px) Image search: [Google]
cheeeen.png
52KB, 256x256px
>>57969007
RAN SHAMAAAA
10/10 would brush the tail
>>
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
>>
   #include <iostream.h>
#include <string.h>

class string
{
private:
int size;
char *ptr;

string() : size(0), ptr(new char[1]) { ptr[0] = 0; }

string(const string &s) : size(s.size)
{
ptr = new char[size + 1];
strcpy(ptr, s.ptr);
}

~string()
{
delete [] ptr;
}

friend ostream &operator <<(ostream &, const string &);
string &operator=(const char *);
};

ostream &operator<<(ostream &stream, const string &s)
{
return(stream << s.ptr);
}

string &string::operator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}

int main()
{
string str;

str = "Hello World";
cout << str << endl;

return(0);
}
>>
>>57969007
puts 'can i pet the tail while i brush it?'
>>
>>57978030
char **argv == char *argv[]
>>
echo "hello world"
>>
>>57969007
@echo off
echo "Hello, World!"
pause
>>
File: a.png (34KB, 1050x761px) Image search: [Google]
a.png
34KB, 1050x761px
>>
>>57969007
Quite possibly the dumbest thread I've ever seen
>>
>>57969007
I'm sorry, I'm a failure of a programmer, I guess I'll have to brush your tail then.
>>
>>57969007
please, let me just brush your tail instead of writing a program, desu
>>
>>57969007
print ("HELLO WORLD OR I'LL MAKE YOU BRUSH MY TAIL")
>>
>>57982454
did you come here just yesterday?
>>
>>57969007
PROGRAM HELLO
PRINT '(A)', 'HELLO WORLD'
END PROGRAM
>>
>>57969007
PROGRAM HELLOWORLD
PRINT*, "Hello, world!"
END PROGRAM
>>
>>57969317
OK I lold
>>
>>57969007
#include <stdout>
#include <string>

int main() {
string helloWorld = "";
helloWorld += "H";
helloWorld += "e";
helloWorld += "l";
helloWorld += "l";
helloWorld += "o";
helloWorld += " ";
helloWorld += "W";
helloWorld += "o";
helloWorld += "r";
helloWorld += "l";
helloWorld += "d";
helloWorld += "!";
cout << helloWorld << endl;
return 0;
}
>>
>>57983102
Doesn't compile.
>>
import os
# hello world by pookesh 2016
# dont know how 2 print in the python, so using system thing
os.system('echo hello world')
>>
print 'brushy brushy'
>>
<script>
document.body.innerHTML='';
for (i=0;i<100;i++) {
document.body.innerHTML+='Hello World<br>';
}
</script>
>>
>>57983153
Excuse my autism, haven't done C++ in a while! ^_^

#include <iostream>
#include <string>

using namespace std;

int main() {
string H = "H";
string e = "e";
string l1 = "l";
string l2 = "l";
string o = "o";
string space = " ";
string W = "W";
string o = "o";
string r = "r";
string l3 = "l";
string d = "d";
string exclamationPoint = "!";
string helloWorld = H + e + l1 + l2 + o + space + W + o + r + l3 + d + exclamationPoint;

const bool printHelloWorld = true;
if (printHelloWorld) {
cout << helloWorld << endl;
}

return 0;
}

>>
Get with the times, everyone
#!/usr/bin/env python
# modern web3.0 hello world

import websocket

def on_open(wsocket):
#sending payload
wsocket.send('Hello World')

def on_message(wsocket, message):
print(message)
wsocket.close()

def on_error(wsocket, error):
print('websocket error')

websocket.enableTrace(False)
wsocket = websocket.WebSocketApp("ws://echo.websocket.org", on_message = on_message, on_error = on_error)
wsocket.on_open = on_open
wsocket.run_forever()
>>
>>57969007

>>
>>57969007
echo hello world
>>
private static class HelloWorldHelper {
private static final String RESULT = "Hello World!";
private static final char[] CONTENT = new char[RESULT.length()];

static {
char[] resultChars = RESULT.toCharArray();
for (int i = 0; i < resultChars.length; i++) {
CONTENT[i] = resultChars[i];
}
}

public static String print() {
if (!Arrays.equals(CONTENT, RESULT.toCharArray()))
throw new IllegalStateException("Error parsing result");
System.out.println(RESULT);
return new String(CONTENT);
}
}

public static void main(String[] args) {
String helloWorld = HelloWorldHelper.print();
if (!helloWorld.equals(HelloWorldHelper.RESULT))
throw new IllegalStateException("Printed result is incorrect")
}
>>
>>57973855

"sorry".replace(/^/,"not ")
>>
>>57969007
print("Hello world")
>>
ECHO "Hello World"
>>
>>57969007
 (=<`#9]~6ZY32Vx/4Rs+0No-&Jk)"Fh}|Bcy?`=*z]Kw%oG4UUS0/@-ejc(:'8dc
>>
>>57975143
this.
>>
package main

func main() {
println("Hello world")
}
>>
 
#include <iostream>

namespace __hidden__ {
struct print {
bool space;
print() : space(false) {}
~print() { std::cout << std::endl; }

template <typename T>
print &operator , (const T &t) {
if (space) std::cout << ' ';
else space = true;
std::cout << t;
return *this;
}
};
}

#define print __hidden__::print(),

int main() {
int a = 1, b = 2;
print "this is a test";
print "the sum of", a, "and", b, "is", a + b;
return 0;
}
>>
;
ORG 3000H
;
START LD HL,HELLO
LD A,0AH ; @dsply
RST 28H
LD A,16H ; @exit
RST 28H
HELLO DB 'Hello World',13
END START
>>
>>57969007
%include "io.mac"

.DATA
hello_msg db 'Hello World!',0

.CODE
.STARTUP
PutStr hello_msg
.EXIT
>>
>>57969007
My program's hitting the ideone time limit but maybe someone else can get it to work?

http://ideone.com/ef5eAD

const chars = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM!";
const target = "Hello World!";
var str = "";

while(str !== target) {
if(str.length < target.length) {
str += chars[Math.floor(Math.random() * chars.length)];
} else {
console.log("Attempt failed: " + str);
str = "";
}
}

console.log(str);
>>
>>57984190
That's pretty neat, anon.
Variadic templates are incredibly powerful.
>>
>>57984494
Ah I forgot a space in my original 'chars' variable.

But I've been running this locally for upwards of 5 minutes and it still hasn't brute-forced me a "Hello World!". It should work in theory, though. Can I brush your tail in the meantime?
>>
File: BGVw77YCUAALJvI.jpg (35KB, 500x615px) Image search: [Google]
BGVw77YCUAALJvI.jpg
35KB, 500x615px
>>57969007
<code>
public class printizzleHelloWorldizzle{
public static void main(String[] args){
//ma nizzle
System.out.println("Hellizzle Worldizzle");
}
}
</code>
>>
>>57984494
>>57984728
> 1 / ( 6.1478 * 10^20 ) chance
It will take some time. Sit back and relax.
>>
>>57984879
Where'd you get 6.1478 and 10^20? I'm just curious, I suck at math.
>>
>>57980877
What?
>>
     ldx #$0b
lp lda txt,x
sta $0400,x
dex
bpl lp
rts
txt
!scr "HELLO WORLD OR I'LL MAKE YOU BRUSH MY TAIL"
>>
>>57980877
It actually would work if he did it right

 #!/usr/bin/python3 -cprint("HELLO WORLD")


chmod +x it and execute the file directly
>>
File: wew.jpg (23KB, 640x559px) Image search: [Google]
wew.jpg
23KB, 640x559px
>>57977547
Oh fugg.
>>
>>57969315

Hm... Couldn't you do something clever like assemble the log instances from a stream that reads a string value?
>>
>>57984974
Each position can hold
len(  "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM! " ) == 54
different varaints and there is
len( "Hello World!" ) == 12
positions. Values can repeat.
So there is 54^12 possible variants == 614787626176508399616. Its basic combinatorics man, go read it. It simple yet very usefull in programming.
>>
>>57985984
Thats some fucked up formating.
Values in positions i meant. So its possible to have "qqqqqqqqqqqq" and such.
>>
print "poo"
>>
module Program

[<EntryPoint>]
let main args =
printfn "HELLO WORLD"
0

>>
10 print "hello world"
20 goto 10
>>
 
(princ "hello world!")
>>
>>57969052
Java is so fucking ugly holy shit
>>
       PRINT *, "Hello World!"
END
>>
>>57969007
10 PRINT "HELLO WORLD"
20 END
>>
import basc_py4chan as py4c; print(' '.join(py4c.Board('g').get_thread(57969007).topic.text_comment.split(' ')[6:]))
>>
>>57985984
>It simple yet very usefull in programming.
Seconding this. Combinators is probably the most useful branch of mathematics I've ever studied, as a programmer.
>>
>>57992723
>Combinators
meant to write combinatorics, I just woke up
>>
#include <iostream>
using namespace std;

int main()
{
cout << "Hello World!" << endl;
return 0;
}
[code/]
>>
>>57969007
@echo off
cls
echo hello world
>>
puts "hello world"
>>
File: file.png (2KB, 137x62px) Image search: [Google]
file.png
2KB, 137x62px
>>
File: 1364260350041.jpg (20KB, 312x312px) Image search: [Google]
1364260350041.jpg
20KB, 312x312px
Not gonna do it. Pls appear.

If trips then she manifests next to me
>>57969007
>>
File: 1477209517690.png (371KB, 832x868px) Image search: [Google]
1477209517690.png
371KB, 832x868px
>>57993758
>>
>>57969007
brushie brushie
>>
>>57969177
kill your're selve
>>
>>57970181
brain is definitely fucked
>>
>>57969191
Better /jp/ than /pol/ or /v/.
>>
Console.log(Hello World);
>>
fn main() {
println!("Hello World");
}
>>
def opisafaget():
print('hello world')
opisafaget()
>>
$ cat
hello world^D
>>
ADD 8
UNTIL 0
MOV RIGHT, P
ADD 4
UNTIL 0
MOV RIGHT, P
ADD 2
MOV RIGHT, P
ADD 3
MOV RIGHT, P
ADD 3
MOV RIGHT, P
ADD 1
MOV LEFT, P
MOV LEFT, P
MOV LEFT, P
MOV LEFT, P
SUB 1
END
MOV RIGHT, P
ADD 1
MOV RIGHT, P
ADD 1
MOV RIGHT, P
SUB 1
MOV RIGHT, P
MOV RIGHT, P
ADD 1
UNTIL 0
MOV RIGHT, P
END
MOV LEFT, P
SUB 1
END
MOV RIGHT, P
MOV RIGHT, P
MOV OUT, P
MOV RIGHT, P
SUB 3
MOV OUT, P
ADD 7
MOV OUT, P
MOV OUT, P
ADD 3
MOV OUT, P
MOV RIGHT, P
MOV RIGHT, P
MOV OUT, P
MOV LEFT, P
SUB 1
MOV OUT, P
MOV LEFT, P
MOV OUT, P
ADD 3
MOV OUT, P
SUB 6
MOV OUT, P
SUB 8
MOV OUT, P
MOV RIGHT, P
MOV RIGHT, P
ADD 1
MOV OUT, P
MOV RIGHT, P
ADD 2
MOV OUT, P
>>
#include<iostream>  
int main(){long long c[]{8022916924116329800,6581362};printf("%s",c);}
>>
"HELLO WORLD OR I'LL MAKE YOU BRUSH MY TAIL"
>>
Linux-only, most convoluted but efficient way. I got rid of error-checking code because of size constraints.
#define _GNU_SOURCE

#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <errno.h>
#include <string.h>

#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/uio.h>

struct participant {
int buf_fds[2];
int pipe_fds[2];
void (*fptr)(void *);
pid_t pid;
};

void child(void *data)
{
struct participant *p = data;

splice(p->pipe_fds[0], NULL, STDOUT_FILENO, NULL, INT_MAX, 0);
close(p->pipe_fds[0]);

exit(EXIT_SUCCESS);
}

int main()
{
struct participant p;

/* creating pipes specially to get kernel buffers to play with */
pipe(p.buf_fds);

/* pipe to child process */
pipe(p.pipe_fds);

/* fork */
p.fptr = child;
p.pid = fork();
if (p.pid == 0) {
/* child */
close(p.pipe_fds[1]);
p.fptr(&p);
} else {
/* parent */
close(p.pipe_fds[0]);
}

/* parent main routine:
* "gift" string to first kernel buffer (vmsplice) so that
* subsequent calls don't involve a page copy,
* then "flush" kernel buffers to child (splice) */
char s[] = "hello, world!\n";
struct iovec iov = { s, sizeof(s) };
ssize_t sz = vmsplice(p.buf_fds[1], &iov, 1, SPLICE_F_GIFT);
splice(p.buf_fds[0], NULL, p.pipe_fds[1], NULL, sz, SPLICE_F_MOVE);

wait(NULL);
close(p.pipe_fds[1]);

return 0;
}
>>
File: 1408071600065.jpg (42KB, 460x341px) Image search: [Google]
1408071600065.jpg
42KB, 460x341px
>>57993771
>no trips

now she's mine
>>
>>57969007
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLOWORLD.

DATA DIVISION.
WORKING-STORAGE SECTION.
01 HELLO-STR PIC X(13) VALUE IS "HELLO WORLD!"

PROCEDURE DIVISION.
HELLO-PARA.
DISPLAY HELLO-STR.
STOP RUN.
>>
File: basic_baby.jpg (55KB, 927x736px) Image search: [Google]
basic_baby.jpg
55KB, 927x736px
Not using god tier Visual Basic in Visual Studio 2015 Community Edition
>>
>>57999260
>not using 2017
>>
>>57999260
>gloating about being a cuckold
>>
File: Capture.png (54KB, 940x510px) Image search: [Google]
Capture.png
54KB, 940x510px
>>57999260
Step up your game senpai
>>
        PROGRAM HW       
WRITE (*,*) "HELLO WORLD"
END PROGRAM HW
>>
>>57969007
#!/bin/python3
print("HELLO WORLD OR I'LL MAKE YOU BRUSH MY TAIL")

There you are.
>>
echo "Hello World!"
Thread posts: 194
Thread images: 23


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.