Post History
Ruby, 24 21 18 bytes p"Hello, #{gets}!" Try it online! Golfed down 3 bytes thanks to @snail_'s advice. Golfed down 3 bytes thanks to @south's advice.
Answer
#5: Post edited
# [Ruby], 21 bytes- <!-- language-all: lang-ruby -->
puts"Hello, #{gets}!"[Try it online!][TIO-kt5ieikf][**@snail_**](https://codegolf.codidact.com/users/53607)'s [solution](https://codegolf.codidact.com/comments/thread/4375#comment-13345). I'll be giving them the credit since I don't want to change the input.- [Ruby]: https://www.ruby-lang.org/
[TIO-kt5ieikf]: https://tio.run/##KypNqvz/v6C0pFjJIzUnJ19HQbk6PbWkuFZR6f//4rzEzBwA "Ruby – Try It Online"# [Ruby], 24 bytes<!-- language-all: lang-ruby -->puts'Hello, '+gets()+'!'[Try it online!][TIO-kt58rflb][Ruby]: https://www.ruby-lang.org/[TIO-kt58rflb]: https://tio.run/##KypNqvz/v6C0pFjdIzUnJ19HQV07PbWkWENTW11R/f9/38SibAX3zKLEtLRUAA "Ruby – Try It Online"
- # [Ruby], <s>24</s> <s>21</s> 18 bytes
- <!-- language-all: lang-ruby -->
- p"Hello, #{gets}!"
- [Try it online!][TIO-kzk42fto]
- Golfed down 3 bytes thanks to [**@snail_**](https://codegolf.codidact.com/users/53607)'s [advice](https://codegolf.codidact.com/comments/thread/4375#comment-13345). Golfed down 3 bytes thanks to [**@south**](https://codegolf.codidact.com/users/55339)'s [advice](https://codegolf.codidact.com/comments/thread/4375#comment-16517).
- [Ruby]: https://www.ruby-lang.org/
- [TIO-kzk42fto]: https://tio.run/##KypNqvz/v0DJIzUnJ19HQbk6PbWkuFZR6f9/38SibAX3zKLEtLRUAA "Ruby – Try It Online"
#4: Post edited
- # [Ruby], 21 bytes
- <!-- language-all: lang-ruby -->
- puts"Hello, #{gets}!"
- [Try it online!][TIO-kt5ieikf]
[**@snail_**](https://codegolf.codidact.com/users/53607)'s solution. I'll be giving them the credit since I don't want to change the input.- [Ruby]: https://www.ruby-lang.org/
- [TIO-kt5ieikf]: https://tio.run/##KypNqvz/v6C0pFjJIzUnJ19HQbk6PbWkuFZR6f//4rzEzBwA "Ruby – Try It Online"
- # [Ruby], 24 bytes
- <!-- language-all: lang-ruby -->
- puts'Hello, '+gets()+'!'
- [Try it online!][TIO-kt58rflb]
- [Ruby]: https://www.ruby-lang.org/
- [TIO-kt58rflb]: https://tio.run/##KypNqvz/v6C0pFjdIzUnJ19HQV07PbWkWENTW11R/f9/38SibAX3zKLEtLRUAA "Ruby – Try It Online"
- # [Ruby], 21 bytes
- <!-- language-all: lang-ruby -->
- puts"Hello, #{gets}!"
- [Try it online!][TIO-kt5ieikf]
- [**@snail_**](https://codegolf.codidact.com/users/53607)'s [solution](https://codegolf.codidact.com/comments/thread/4375#comment-13345). I'll be giving them the credit since I don't want to change the input.
- [Ruby]: https://www.ruby-lang.org/
- [TIO-kt5ieikf]: https://tio.run/##KypNqvz/v6C0pFjJIzUnJ19HQbk6PbWkuFZR6f//4rzEzBwA "Ruby – Try It Online"
- # [Ruby], 24 bytes
- <!-- language-all: lang-ruby -->
- puts'Hello, '+gets()+'!'
- [Try it online!][TIO-kt58rflb]
- [Ruby]: https://www.ruby-lang.org/
- [TIO-kt58rflb]: https://tio.run/##KypNqvz/v6C0pFjdIzUnJ19HQV07PbWkWENTW11R/f9/38SibAX3zKLEtLRUAA "Ruby – Try It Online"
#3: Post edited
- # [Ruby], 21 bytes
- <!-- language-all: lang-ruby -->
- puts"Hello, #{gets}!"
- [Try it online!][TIO-kt5ieikf]
[**@snail_](https://codegolf.codidact.com/users/53607)'s solution. I'll be giving them the credit since I don't want to change the input.- [Ruby]: https://www.ruby-lang.org/
- [TIO-kt5ieikf]: https://tio.run/##KypNqvz/v6C0pFjJIzUnJ19HQbk6PbWkuFZR6f//4rzEzBwA "Ruby – Try It Online"
- # [Ruby], 24 bytes
- <!-- language-all: lang-ruby -->
- puts'Hello, '+gets()+'!'
- [Try it online!][TIO-kt58rflb]
- [Ruby]: https://www.ruby-lang.org/
- [TIO-kt58rflb]: https://tio.run/##KypNqvz/v6C0pFjdIzUnJ19HQV07PbWkWENTW11R/f9/38SibAX3zKLEtLRUAA "Ruby – Try It Online"
- # [Ruby], 21 bytes
- <!-- language-all: lang-ruby -->
- puts"Hello, #{gets}!"
- [Try it online!][TIO-kt5ieikf]
- [**@snail_**](https://codegolf.codidact.com/users/53607)'s solution. I'll be giving them the credit since I don't want to change the input.
- [Ruby]: https://www.ruby-lang.org/
- [TIO-kt5ieikf]: https://tio.run/##KypNqvz/v6C0pFjJIzUnJ19HQbk6PbWkuFZR6f//4rzEzBwA "Ruby – Try It Online"
- # [Ruby], 24 bytes
- <!-- language-all: lang-ruby -->
- puts'Hello, '+gets()+'!'
- [Try it online!][TIO-kt58rflb]
- [Ruby]: https://www.ruby-lang.org/
- [TIO-kt58rflb]: https://tio.run/##KypNqvz/v6C0pFjdIzUnJ19HQV07PbWkWENTW11R/f9/38SibAX3zKLEtLRUAA "Ruby – Try It Online"
#2: Post edited
- # [Ruby], 24 bytes
- <!-- language-all: lang-ruby -->
- puts'Hello, '+gets()+'!'
- [Try it online!][TIO-kt58rflb]
- [Ruby]: https://www.ruby-lang.org/
- [TIO-kt58rflb]: https://tio.run/##KypNqvz/v6C0pFjdIzUnJ19HQV07PbWkWENTW11R/f9/38SibAX3zKLEtLRUAA "Ruby – Try It Online"
- # [Ruby], 21 bytes
- <!-- language-all: lang-ruby -->
- puts"Hello, #{gets}!"
- [Try it online!][TIO-kt5ieikf]
- [**@snail_](https://codegolf.codidact.com/users/53607)'s solution. I'll be giving them the credit since I don't want to change the input.
- [Ruby]: https://www.ruby-lang.org/
- [TIO-kt5ieikf]: https://tio.run/##KypNqvz/v6C0pFjJIzUnJ19HQbk6PbWkuFZR6f//4rzEzBwA "Ruby – Try It Online"
- # [Ruby], 24 bytes
- <!-- language-all: lang-ruby -->
- puts'Hello, '+gets()+'!'
- [Try it online!][TIO-kt58rflb]
- [Ruby]: https://www.ruby-lang.org/
- [TIO-kt58rflb]: https://tio.run/##KypNqvz/v6C0pFjdIzUnJ19HQV07PbWkWENTW11R/f9/38SibAX3zKLEtLRUAA "Ruby – Try It Online"