Hello world!!! Fibonacci distribution
Windows Command Prompt - 34, 8, 5 chars, (2 below)
*These ones may or may not be breaking rule 2, but here it is anyway
%~099
Name the file:
&start call echo Hello world!!!&exit -b .cmd
Now lets corrupt the file-system a little - 2 chars (or less if you want)
A1
Name the file (using your preferred unorthodox method):
"&start call echo Hello world!!!&exit&.cmd
How does this work:
Since cmd scripts are invoked with 'cmd.exe /C "%1" %*' the executed command will be:
cmd.exe /C "c:\PATH_TO_THE_SCRIPT\"&start call echo Hello world!!!&exit&.cmd"
which will in the following order:
- Fail to execute "c:\PATH_TO_THE_SCRIPT\"
- Open a new shell printing Hello world!\n
- Exit the original shell
MySQL, 34
x'48656C6C6F20776F726C642121'||'!'
This is a MySQL expression that evaluates to Hello world!!!
, assuming the sql_mode
setting includes PIPES_AS_CONCAT
. It contains exactly 21 digits and 13 non-digits.
Whether this qualifies as a valid entry, I leave it to the jury.
Example
mysql> select x'48656C6C6F20776F726C642121'||'!';
+------------------------------------+
| x'48656C6C6F20776F726C642121'||'!' |
+------------------------------------+
| Hello world!!! |
+------------------------------------+
1 row in set (0.00 sec)
C64 BASIC, 55
For fun and nostalgia!