Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Question

edited tags
Link
Jo King
  • 48.1k
  • 6
  • 130
  • 187
Post Reopened by The Fifth Marshal, Community Bot, Stephen, pommicket
added 3 characters in body
Source Link
pommicket
  • 3.2k
  • 2
  • 14
  • 20

As a kind of part 2 to Hello, World! (Every other character), try to write a program such that printsall three of these programs print "Hello, World!". But also: the entire program, if you take the first1st, third3rd, fifth5th, etc. characters of your program, it should still print "Hello, World!". But this time, if you takeand the second2nd, fourth4th, sixth6th, etc. characters of your program, it should still print "Hello, World!"

If your program is:

abc
def

It should output "Hello, World!", but so should

acdf

And

b
e

No solutions with built-in "Hello, World!"s.

As a kind of part 2 to Hello, World! (Every other character), try to write a program that prints "Hello, World!". But also, if you take the first, third, fifth, etc. characters of your program, it should still print "Hello, World!". But this time, if you take the second, fourth, sixth, etc. characters of your program, it should still print "Hello, World!"

If your program is:

abc
def

It should output "Hello, World!", but so should

acdf

And

b
e

No solutions with built-in "Hello, World!"s.

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 your program, and the 2nd, 4th, 6th, etc.

If your program is:

abc
def

It should output "Hello, World!", but so should

acdf

And

b
e

No solutions with built-in "Hello, World!"s.

added 3 characters in body
Source Link
pommicket
  • 3.2k
  • 2
  • 14
  • 20

As a kind of part 2 to Hello, World! (Every other character), try to write a program that prints "Hello, World!". But also, if you take the first, third, fifth, etc. characters of your program, it should still print "Hello, World!". But this time, if you take the second, fourth, sixth, etc. characters of your program, it should still print "Hello, World!"

If your program is:

abc
def

It should output "Hello, World!", but so should

acdf

AndAnd

b
e

No solutions with built-in "Hello, World!"s.

As a kind of part 2 to Hello, World! (Every other character), try to write a program that prints "Hello, World!". But also, if you take the first, third, fifth, etc. characters of your program, it should still print "Hello, World!". But this time, if you take the second, fourth, sixth, etc. characters of your program, it should still print "Hello, World!"

If your program is:

abc
def

It should output "Hello, World!", but so should

acdf

And

b
e

No solutions with built-in "Hello, World!"s.

As a kind of part 2 to Hello, World! (Every other character), try to write a program that prints "Hello, World!". But also, if you take the first, third, fifth, etc. characters of your program, it should still print "Hello, World!". But this time, if you take the second, fourth, sixth, etc. characters of your program, it should still print "Hello, World!"

If your program is:

abc
def

It should output "Hello, World!", but so should

acdf

And

b
e

No solutions with built-in "Hello, World!"s.

Post Closed as "Duplicate" by The Fifth Marshal, Adalynn, Wheat Wizard , Taylor Raine, DJMcMayhem code-golf Users with the code-golf badge or a synonym can single-handedly close questions as duplicates and reopen them as needed.
Tweeted twitter.com/StackCodeGolf/status/881389690083037184
Source Link
pommicket
  • 3.2k
  • 2
  • 14
  • 20
Loading

AltStyle によって変換されたページ (->オリジナル) /