Using sweerpotato's trick sweerpotato's trick, cheap but powerful.
Runs in Brainbool, Mathematica 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 and 10.0, Foo and ><>.
cn;+"11".Print@Floor@$VersionNumber
(削除ここまで)Using sweerpotato's trick, cheap but powerful.
Runs in Brainbool, Mathematica 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 and 10.0, Foo and ><>.
cn;+"11".Print@Floor@$VersionNumber
(削除ここまで)Using sweerpotato's trick, cheap but powerful.
Runs in Brainbool, Mathematica 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 and 10.0, Foo and ><>.
cn;+"11".Print@Floor@$VersionNumber
(削除ここまで)45 Languages, 1518 bytes / 4^35^3 = 0.234375144
Runs in Brainbool, Mathematica, Foo and, ><> and Befunge-93.
4n;+"3"4!<n;+Print@2"3".Print@25
4n;+"3"4!<n;+Print@2"3".Print@25
< move the pointer to the left
+ logic not
. . print the current cell
Foo
"3" prints 3. I don't know what the other parts do.
><>
4n;+"3"4!<n;+Print@2"3".Print@25
4n;4 return 4 times n
push 4
! Print@2 print 2 and return Null
"3" skip the next command
n the string "3"
. pop and print takeit theas dota productnumber
+ ; the sum of a single termend isthe itselfprogram
FooBefunge
4n;+"3"4!<n;+Print@2"3".Print@25
4 "3" print 3 push 4
><>
4n;+"3".Print@2 ! logical not
< makes the program counter travel to the right
! logical not
4 push 4
n 5 push 5
. pop and print it as a number
; "3" push the string "3"
2 push 2
@ end executionthe program
4 Languages, 15 bytes / 4^3 = 0.234375
Runs in Brainbool, Mathematica, Foo and ><>.
4n;+"3".Print@2
4n;+"3".Print@2
+ logic not
. print the current cell
4n;+"3".Print@2
4n; return 4 times n
Print@2 print 2 and return Null
"3" the string "3"
. take the dot product
+ the sum of a single term is itself
Foo
4n;+"3".Print@2
"3" print 3
><>
4n;+"3".Print@2
4 push 4
n pop and print it as a number
; end execution
5 Languages, 18 bytes / 5^3 = 0.144
Runs in Brainbool, Mathematica, Foo , ><> and Befunge-93.
4!<n;+Print@2"3".5
4!<n;+Print@2"3".5
< move the pointer to the left
+ logic not
. print the current cell
Foo
"3" prints 3. I don't know what the other parts do.
><>
4!<n;+Print@2"3".5
4 push 4
! skip the next command
n pop and print it as a number
; end the program
Befunge
4!<n;+Print@2"3".5
4 push 4
! logical not
< makes the program counter travel to the right
! logical not
4 push 4
5 push 5
. pop and print it as a number
"3" push the string "3"
2 push 2
@ end the program
###Brainbool
Brainbool is like Brainfuck, but it operates only on bits, and its input and output consists solely of 0 and 1.
4n;+"3".Print@2
+ logic not
. print the current cell
Mathematica
In Mathematica, everything is an expression and has a value. Print@2 prints 2 and returns the symbol Null. After that, the code does some symbolic calculations, but doesn't print anything.
4n;+"3".Print@2
4n; return 4 times n
Print@2 print 2 and return Null
"3" the string "3"
. take the dot product
+ the sum of a single term is itself
Foo
4n;+"3".Print@2
"3" print 3
><>
4n;+"3".Print@2
4 push 4
n pop and print it as a number
; end execution
Using sweerpotato's trick, cheap but powerful.
Runs in Brainbool, Mathematica 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 and 10.0, Foo and ><> .
cn;+"11".Print@Floor@$VersionNumber
###Brainbool
Brainbool is like Brainfuck, but it operates only on bits, and its input and output consists solely of 0 and 1.
cn;+"11".Print@Floor@$VersionNumber
+ logic not
. print the current cell
Mathematica
cn;+"11".Print@Floor@$VersionNumber
cn; just a symbol, doesn't do anything
$VersionNumber return the version number as a real number
Floor@ take the floor
Print@ print it and return Null
"11" the string "11"
. take the dot product
+ the sum of a single term is itself
In Mathematica, everything is an expression and has a value.Print@Floor@$VersionNumber prints the version number and returns the symbol Null. After that, the code does some symbolic calculations, but doesn't print anything.
$VersionNumber was introduced in Mathematica 2.0, so the code doesn't work in Mathematica 1.0.
Foo
cn;+"11".Print@Floor@$VersionNumber
"11" print 11
><>
cn;+"11".Print@Floor@$VersionNumber
c push 12
n pop and print it as a number
; end execution
(削除ここまで)Using sweerpotato's trick, cheap but powerful.
Runs in Brainbool, Mathematica 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 and 10.0, Foo and ><> .
cn;+"11".Print@Floor@$VersionNumber
###Brainbool
Brainbool is like Brainfuck, but it operates only on bits, and its input and output consists solely of 0 and 1.
cn;+"11".Print@Floor@$VersionNumber
+ logic not
. print the current cell
Mathematica
cn;+"11".Print@Floor@$VersionNumber
cn; just a symbol, doesn't do anything
$VersionNumber return the version number as a real number
Floor@ take the floor
Print@ print it and return Null
"11" the string "11"
. take the dot product
+ the sum of a single term is itself
In Mathematica, everything is an expression and has a value.Print@Floor@$VersionNumber prints the version number and returns the symbol Null. After that, the code does some symbolic calculations, but doesn't print anything.
$VersionNumber was introduced in Mathematica 2.0, so the code doesn't work in Mathematica 1.0.
Foo
cn;+"11".Print@Floor@$VersionNumber
"11" print 11
><>
cn;+"11".Print@Floor@$VersionNumber
c push 12
n pop and print it as a number
; end execution
(削除ここまで)###Brainbool
Brainbool is like Brainfuck, but it operates only on bits, and its input and output consists solely of 0 and 1.
4n;+"3".Print@2
+ logic not
. print the current cell
Mathematica
In Mathematica, everything is an expression and has a value. Print@2 prints 2 and returns the symbol Null. After that, the code does some symbolic calculations, but doesn't print anything.
4n;+"3".Print@2
4n; return 4 times n
Print@2 print 2 and return Null
"3" the string "3"
. take the dot product
+ the sum of a single term is itself
Foo
4n;+"3".Print@2
"3" print 3
><>
4n;+"3".Print@2
4 push 4
n pop and print it as a number
; end execution
Using sweerpotato's trick, cheap but powerful.
Runs in Brainbool, Mathematica 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 and 10.0, Foo and ><>.
cn;+"11".Print@Floor@$VersionNumber
(削除ここまで)