Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs

Dashboard
Notifications
Mark all as read
Challenges
Parent

"Hello, {name}!"

+2
−1

Background

While we do have a "Hello, World!" challenge, we still don't have one regarding input. So let's do one!

Challenge

Create a program that takes an input (not as a function argument) then outputs Hello, , the variable and ! altogether. Standard I/O only applies. Shortest submission per language wins!

Bonus: Use your username as the input.

Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

2 comment threads

Output rules (2 comments)
A note about self answers (2 comments)
Post
+0
−0

Lua, 35 32 bytes

print("Hello, "..io.read().."!")

Try it online!

Golfed 3 bytes thanks to @Moshi's advice.

Why does this post require moderator attention?
You might want to add some details to your flag.

1 comment thread

Inline (1 comment)

Comments on "Hello, {name}!"

Inline
Moshi‭ wrote about 2 months ago:

You can easily remove a few bytes by just using print("Hello, "..io.read().."!")

This community is part of the Codidact network. We have other communities too — take a look!

You can also join us in chat!

Want to advertise this community? Use our templates!