Write an intercal hello world program
- User
Write an intercal hello world program
Assistant
Intercal is a esoteric programming language created in 1972 which has many unconventional features. Here's a simple "Hello, World!" program in Intercal:
codePLEASE ,1<- #12 ."Hello, World!" DO ,1SUB#12 DO ,1SUB#10 DO ,1SUB#12 DO ,1SUB#10 DO ,1SUB#11 DO ,1SUB#11 DO ,1SUB#44 DO ,1SUB#32 DO ,1SUB#87 DO ,1SUB#111 DO ,1SUB#114 DO ,1SUB#108 DO ,1SUB#100 DO ,1SUB#33 PLEASE DO READOUT ;1 PLEASE GIVE UPThis program works by storing the ASCII values of each character in the string "Hello, World!" in the accumulator, and then printing out each character by subtracting its ASCII value from the accumulator. The
PLEASE DO READOUT ;1statement prints out the remaining value in the accumulator. ThePLEASE GIVE UPstatement is the end of the program.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.