Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [hello-world]

A challenge that involves making a "Hello, World!" program, or other similar strings.

8
votes
4answers
386 views

Get the lowest possible pylint score within 128 bytes of python

pylint has no lower bound on the scores it will give your code. It uses the following metric to score code, with the maximum score being 10: ...
1
vote
1answer
144 views

Reverse user input [duplicate]

This is a pretty simple one. if the user enters "Hello World" your code should output "dlroW olleH" I was inspired by the multiplication question recently posted. I know this is probably easy in ...
72
votes
14answers
8k views

Hello World in Multiple Languages

Task Create a program or a function that is valid in multiple programming languages, and when compiled/interpreted as a different language outputs "Hello, World!" in a different natural language. ...
5
votes
3answers
560 views

Use an editor to write “Hello, World” [closed]

Objective Use any editor or IDE (vim, emacs, IntelliJ, etc) to write a valid "Hello, World" program in any C-like language. The "!" is optional, but you get style points if you use it. You may use ...
11
votes
35answers
3k views

“Hello, World!” (Robbers' thread)

This is the robbers' thread. The cops' thread is here. Your challenge is to take an uncracked submission from the cops' thread and find, for what input or inputs, the program will print ...
16
votes
35answers
5k views

“Hello, World!” (Cops' thread)

This is the cops' thread. The robbers' thread is here. Your challenge is to write a program or function that, with a certain input, prints the exact string ...
28
votes
12answers
4k views

Hello, World! with semi-common characters

As some of you may know, to get a language onto Dennis's wonderful Try It Online!, a Hello, World! program is required. Recently, Dennis pushed up a way to load these programs from the website. Here ...
16
votes
17answers
2k views

“Hello, World!” (Every other character, Part 2)

As a kind of part 2 to Hello, World! (Every other character), write a program such that all three of these programs print "Hello, World!": the entire program, the 1st, 3rd, 5th, etc. characters of ...
126
votes
71answers
15k views

Hello, World! (Every other character)

Write a program that prints "Hello, World!". But also, if you take only the first, third, fifth, etc. characters of your program, the resulting program should still print "Hello, World!". If your ...
40
votes
83answers
13k views

Goodbye Cruel World!

Background Hello golfers! I would like to learn all the programming languages! But I kinda have a short attention span... and copying all the Hello World examples gets boring... but I like fire! ^w^ ...
-2
votes
4answers
147 views

Output “Hello, World!” in the clipboard [duplicate]

Make a program (or a function) that copies the exact text "Hello, World!" to the clipboard, and terminates.
-3
votes
7answers
401 views

Hello… eh, who?

Introduction You started to write a "Hello, World!" program, but after you wrote the part to print the hello, you forgot what your program should actually print. So now, you somehow managed it to ...
10
votes
10answers
570 views

Hello world that handles errors

Write a program or function with the following functionality: The program/function first attempts to write the string Hello, world! to the standard output stream. (...
23
votes
3answers
1k views

Hello World - but alphabetically

This challenge sounds too simple to not already exist, so let me know if it is a duplicate. The task Print Hello, world! The rules Your code has to be in "byte ...
43
votes
48answers
8k views

Animate the text in your terminal

Animate the text in your terminal The goal The goal is to "animate" the string "Hello world" in your output so that each character gets capitalised after each other. Your program can exit after ...
2
votes
0answers
316 views

Hello World!… in pure x86 opcodes [duplicate]

This is a Hello World challenge! Those plain ones! Yeah.... However, it's different this time. Because here, you can't use C or C++ or Stuck or ArnoldC or whatever you want. You can only choose raw ...
-2
votes
1answer
290 views

Hello World! generator [duplicate]

Often I need a simple Hello World! program to show some basic concepts of a programming language on my travels. As I usually travel only with light luggage I can't to carry a Hello World! program for ...
79
votes
25answers
7k views

print “Hello, World!”

Yes, really. Print it with a hardware printer 🖨 to create a hard copy. Send the necessary commands/data to your printer such that the following text is printed on a piece of paper: Hello, World! ...
0
votes
0answers
176 views

Hello World!++ (Hello World with input) [duplicate]

ltl, ftp Prelude I'm pretty sure you've seen a ton of Hello World challenges before... So I've created this simple twist... Challenge Golf me a simple program that: Takes any amount of ASCII ...
1
vote
1answer
294 views

“HHeelllloo,, EEaarrtthh!!” [duplicate]

Much like this challenge, write a program or function that takes no input and prints or returns the string Hello, Earth! with an optional trailing newline. The ...
11
votes
50answers
2k views

Create and write to a file

Challenge Create a new file and write the string Hello World to it. Restrictions Your challenge must write to a file on disk, in the file system. The file may ...
66
votes
18answers
9k views

Rube Goldberg Hello World

For this golf, you will need to use more than one language. The task A Rube Goldberg machine is a contraption that takes an enormous number of complicated steps in order to execute a very simple ...
13
votes
11answers
1k views

Double-duty quine: quine!dlroW ,olleH

Write a program that will output its own source code when run, and nothing else. Seems easy, right? The catch is that when the source code is reversed, your program must output "Hello, World!" ...
0
votes
0answers
104 views

Output your used source code in reverse [duplicate]

I'm new to this stackexchange, but I must say I am very impressed by the knowledge of some here, and the original codegolf answers for some questions. I'm not even sure if the following is possible, ...
28
votes
8answers
7k views

Build a twisted “Hello world!”

Your job is quite simple, write a program that prints Hello, world!, that when twisted creates a program that prints Twister!. ...
1
vote
31answers
592 views

HelloWorld error [duplicate]

Introduction Everyone's first program outputs Hello World!. This program should be very simple, that's all you have to do. Challenge Output the string ...
19
votes
12answers
4k views

“Hello world” that creates a different “Hello world” program

Create a program, that outputs a hello world string ("Hello world", "Hello, World" etc.), and source code. Output is written to stdout or equivalent. Hello world string is embedded in the source code. ...
15
votes
5answers
1k views

RTTTL Obfuscation

RTTTL, or Ring Tone Text Transfer Language is a music format that was invented by Nokia in the dawn of time when dinosaurs roamed the land. It allows for fairly crude pieces of music (no chords or ...
26
votes
56answers
2k views

Palindrome Hello, World

Your task is to create a program that prints "Greetings, Planet!" exactly to the console. Seems simple enough, right? Well, here's the trick. The code must be a palindrome, meaning it reads from right ...
387
votes
729answers
112k views

“Hello, World!”

So... uh... this is a bit embarrassing. But we don't have a plain "Hello, World!" challenge yet (despite having 35 variants tagged with hello-world, and counting). While this is not the most ...
182
votes
204answers
38k views

The Programming Language Quiz

Congratulations to Dennis who won both the cops' and the robbers' challenge! Calvin's Hobbies has already delivered on his promise and wrote this challenge for Dennis for winning the robbers' ...
6
votes
2answers
438 views

Write a self replicating program that stops replicating after “printing” “Hello world!” with the filenames

Write a self replicating program, in the source code filename H.*, contianed in an empty folder then manually compile and run or just run the program if your chosen ...
164
votes
95answers
36k views

Programming Languages Through The Years

In this challenge, users will take turns completeing three fairly simple coding tasks in programming languages that are allowed to be progressively older. The first answer must use a programming ...
27
votes
18answers
6k views

Shortest Sorted Hello World

Write a program that takes no input and prints Hello, World! to stdout or your language's closest alternative. The catch is that each line in your program must only ...
1
vote
1answer
195 views

Printing a “Hello World” one-liner in bourne shell without directly using white space char [closed]

I'm currently trying to solve a tricky/silly challenge and i've come to a dead end. The challenge is basically to form a one-liner /bin/sh compatible command line which essentially outputs "Hello ...
221
votes
180answers
34k views

Evolution of “Hello World!”

This contest is officially over, the winner is jimmy23013. Congratulations! The challenge is to make a program that prints Hello World! to stdout. The catch is ...
15
votes
11answers
3k views

Hello world with a twist

Your goal: to write a piece of code that will result in the classic result of "Hello, world!" being printed to STDOUT or equivalent. Rules: Code must be entirely in printing ASCII. All code must be ...
25
votes
44answers
11k views

Write a piece of code to output the line number of the print / output statement itself (in the form “Hello World, from line X!”)

The Challenge Write a program that outputs Hello World, from line X!, where X is the line number, in the source code, of the ...
3
votes
6answers
2k views

print “Hello, world!” without using literals [closed]

Write a program that prints "Hello, world!" without using any kinds of literals. Don't use string literals, numeric literals, byte literals, char literals, etc. Default values are allowed in ...
24
votes
49answers
6k views

Write a hello world GUI program that closes itself after three seconds

Please read the rules, and the bold areas as well. Write a program in any language, so long as it has GUI support for a window system (cannot be text-consoles, etc., and must be a GUI/toolkit/window)....
24
votes
32answers
7k views

Obfuscation Challenge [closed]

You are to write a program that does one of the following. Only displays "Hello World" does nothing else Quits and nothing else (no output, no errors.) Takes one line of input, parses it as an ...
43
votes
52answers
8k views

Alphanumeric Hello World [closed]

Your goal is to write "Hello, World!" (minus the quotes). This is a popularity-contest, so most up votes wins. Code length will be used to break ties. Anything goes, as long as it is within the ...
28
votes
21answers
5k views

Limerick Hello World [closed]

A rhyming program you write Attempting to win the fight For winning the contest and vote It must compute "Hello World" Then print it very polite The most popular poem will win. The requirements are: ...
66
votes
55answers
64k views

Weirdest obfuscated “Hello World!” [closed]

Task: Create an obfuscated program that prints Hello World! (exactly like that). Your program may not have any strings in it. Rules: You can use any programming ...
39
votes
33answers
14k views

ASCII art “Hello-World!” [closed]

Your goal is to write the shortest program that outputs "Hello-World!" as ASCII art. Rules : It must be human readable, I don't care about it's size (cols/rows) Output must contain only spaces (" ")...
50
votes
41answers
21k views

Make a PNG image with “Hello World!” with programming APIs, in the shortest code possible [closed]

So, I want you to make a PNG image that says "Hello world!" and nothing else on a distinguishable background using only an image making API (eg ImageMagick) and return the image. Fewest characters win,...
5
votes
4answers
862 views

Golf with a bowling ball: hello world with high complexity yet short code

In this challenge, you must write a Hello World program that is both short and complex. We measure complexity by Cyclomatic McCabe complexity, and length by the number of bytes (not characters). ...
-1
votes
3answers
1k views

Generate the characters of “Hello, world!” mathematically, without strings or arrays, like generating the digits of π [duplicate]

The challenge is to come up with a mathematical way to generate each character of the exact string: Hello, world! (Capital letter, comma, exclamation mark.) But you can't use any strings, arrays, ...
15
votes
26answers
4k views

“Hello world!”, repeating each character n times [closed]

In your language of choice, write a program that outputs exactly Hello world!. Each character in your program must be repeated n times - you choose n. For example, ...
25
votes
9answers
3k views

Hello world! with NO repetition

In any programming language that existed before this question was asked, write a program (not a function) that outputs the characters Hello world! followed by a ...