Write an intercal hello world program
- User
Write an intercal hello world program
Assistant
Here is a Hello World program in the esoteric Intercal programming language:
PLEASE DO ,1 <- #13 DO ,1 SUB #1 <- #238 DO ,1 SUB #2 <- #108 DO ,1 SUB #3 <- #112 DO ,1 SUB #4 <- #0 DO ,1 SUB #5 <- #64 DO ,1 SUB #6 <- #194 DO ,1 SUB #7 <- #48 PLEASE DO ,1 SUB #8 <- #22 DO ,1 SUB #9 <- #248 DO ,1 SUB #10 <- #168 DO ,1 SUB #11 <- #24 DO ,1 SUB #12 <- #16 DO ,1 SUB #13 <- #162 PLEASE READ OUT ,1 PLEASE GIVE UPThis program starts by setting up 13 variables numbered 1 through 13. It stores the ASCII character codes for "Hello World!" in these variables.
It then performs a "READ OUT" operation which will print the stored string to the console.
Some key things to note about Intercal:
- It uses "PLEASE" and "DO" statements instead of more conventional syntax
- Variable names are just numbers
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.