Execute HQ9+: Difference between revisions

m
m (→‎{{header|php}}: Fixed language name.)
(3 intermediate revisions by 3 users not shown)
Line 517:
}</syntaxhighlight>
 
=={{header|BASIC256BASIC}}==
==={{header|BASIC256}}===
{{trans|FreeBASIC}}
<syntaxhighlight lang="basic256">
Line 567 ⟶ 568:
</syntaxhighlight>
 
==={{header|BBC BASIC}}===
<syntaxhighlight lang="bbcbasic"> PROChq9plus("hq9+HqQ+Qq")
END
Line 1,067 ⟶ 1,068:
 
See [[Execute HQ9+/E]].
 
=={{header|EasyLang}}==
<syntaxhighlight>
proc run code$ . .
for c$ in strchars code$
if c$ = "Q"
print code$
elif c$ = "H"
print "Hello, world!"
elif c$ = "9"
for b = 99 downto 1
print b & " bottles of beer on the wall"
print b & " bottles of beer"
print "Take one down, pass it around"
print b & " bottles of beer on the wall"
print ""
.
elif c$ = "+"
acc += 1
print acc
.
.
.
run "HQ9+"
</syntaxhighlight>
 
=={{header|Ela}}==
Line 2,748 ⟶ 2,774:
=={{header|Wren}}==
{{trans|Kotlin}}
<syntaxhighlight lang="ecmascriptwren">import "os" for Process
 
var hq9plus = Fn.new { |code|
2,049

edits