| Index: > A B C D E F G H I J K L M N O P Q R S T U V W X Y Z |
|
|||||
Input: H
Output: Hello World!
Input: HQ
Output:
Input: Q+Q+Q+
Output:
This program would also increment the accumulator three times. Note that a program containing anything more than + statements and a single Q statement prints more than its source code once and is not a true quine.
HQ9+ is, of course, a joke language. Each of the commands represents a programming exercise that is often given to students or novices for practice. In some programming languages, these exercises can be quite tricky, but in HQ9+ they are trivial. However, for any program other than one of these exercises, the language is essentially useless.