[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Hello World
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 51
Thread images: 6
Hey /g/ays
Write a simple Hello World program in your favorite programming language and show it to us.
I'll start with Haskell
main :: IO ()
main = putStrLn "Hello World!"
>>
>>51946309
echo "hello world!"
>>
10 PRINT "Hello World!"
>>
File: fedora.jpg (32 KB, 354x450) Image search: [Google]
fedora.jpg
32 KB, 354x450
>Haskell
>>
>>51946309
why?
>>
>>51946324
You mean
echo "hello world!"
, right?

>>51946335
You mean
10 PRINT "Hello World!"
, right?
>>
>>51946309
write(1, "hello world\n", 12);
>>
>>51946338
>hating on Haskell
bet you majored in CS to write games in java
fag
>>
std::cout << "hello world" << std::endl;
>>
hello world
>>
>>51946342

Uhmmm, no, I meant 10 PRINT "Hello World!" as posted.

Stop being a dickhead, dickhead.
>>
#include <iostream>
int main (void)
{
char ch1 = 72;
char ch2 = 69;
char ch3 = 76;
char ch4 = 79;
char ch5 = 87;
char ch6 = 82;
char ch7 = 68;
std::cout << ch1 << ch2 << ch3 << ch3 << ch4 <<" " << ch5 << ch4 << ch6 << ch7 ;
return (0);
}
>>
>>51946309
What's the point of this shitty thread OP?
>>
>>51946363
You wont be calling mw a fag when i invent the next Minecraft
>>
>>51946385
WHY NO USE SPACE ASCII VALUE BITCH
>>
>>51946395
To make you ask this shitty question
>>
#include<stdio.h>
main(){printf("Hello world!\n");}
>>
>>51946309
Shitpost. go die somewhere
>>
>>51946309

<h1>Hello world</h1>
>>
File: 3nRQQY6P_400x400.jpg (21 KB, 400x400) Image search: [Google]
3nRQQY6P_400x400.jpg
21 KB, 400x400
>>51946397
this is you

>>51946399
to enrage you, and only you
>>
>>51946437
>programming language
get out go back to le reddit
>>
print()
print(" hello, world.")
print()
input(" press ENTER to say goodbye")
>>
>>51946436
no u
>>
>>51946437
kek
>>
File: ahmed.jpg (93 KB, 1280x720) Image search: [Google]
ahmed.jpg
93 KB, 1280x720
>>51946439
I've managed to get myself a copy of Minecraft, i just need to work on putting it in a pencil case
>>
>>51946437
underrated post
>>
>>51946454
@echo off
cls
echo.
echo hello, world.
echo.
set /p a=
>>
Hello World Souffle. 

Ingredients.
72 g haricot beans
101 eggs
108 g lard
111 cups oil
32 zucchinis
119 ml water
114 g red salmon
100 g dijon mustard
33 potatoes

Method.
Put potatoes into the mixing bowl.
Put dijon mustard into the mixing bowl.
Put lard into the mixing bowl.
Put red salmon into the mixing bowl.
Put oil into the mixing bowl.
Put water into the mixing bowl.
Put zucchinis into the mixing bowl.
Put oil into the mixing bowl.
Put lard into the mixing bowl.
Put lard into the mixing bowl.
Put eggs into the mixing bowl.
Put haricot beans into the mixing bowl.
Liquefy contents of the mixing bowl.
Pour contents of the mixing bowl into the baking dish.

Serves 1.
>>
no one has done assembly or binary yet so sad
>>
>>51946526
in order to write 2 words we must first invent the universe
>>
>>51946562
>>51946526
its not that hard fags
.MODEL Tiny
.CONST
HW DB "Hello World!$"
.CODE
.org 100h
start:
MOV DX, OFFSET DGROUP:HW
MOV AH, 09H
INT 21H
ret
end start
>>
>>51946562
Lol
>>
>>51946309
package main

import "fmt"

func main() {
fmt.Println("hello, world!")
}
>>
http://pastebin.com/raw/vyqCpgcM
>>
>>51946452
<3
>>
>>51946309
h2::before {
content: "Hello World!";
}
>>
#!/bin/bash
for hex in 48 65 6c 6c 6f 20 57 6f 72 6c 64 21 0a; do echo -en "\u$hex"; done
>>
>>51946309
{-# LANGUAGE OverloadedStrings #-}
import qualified Data.Text as T

main :: IO ()
main = T.putStrLn "Hello World!"
>>
>>51946848
Data.Text.IO*
>>
>>51946309
echo "hello world"
>>
PHP
Hello World!

It doesn't get simpler than this!
>>
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
>>
h...h.how do you write code in a white box? sorry for being a newfag
>>
File: Screenshot_20151219-161146.png (157 KB, 1440x2560) Image search: [Google]
Screenshot_20151219-161146.png
157 KB, 1440x2560
>>51946915
your code here
>>
>>51946309
<html>
<h1>Hello World</h1>
</html>
>>
print_string "Hello World!";
>>
display "hello world"


i'm writing my own language, this is the hello world. get on my level nerds
>>
Console.writeline ("Hello world!")
Console.readline
End
>>
>>51946972
its bad
>>
>>51946972
So does display write to stdout? What if I want to write to stderr?
>>
echo "hello world" | cat
Thread replies: 51
Thread images: 6

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.