Skip to main content
Commonmark migration
Source Link

##How it works

How it works

##How it works

How it works

deleted 2 characters in body
Source Link
MD XF
  • 14.2k
  • 5
  • 70
  • 107

><> and Whitespace exit with an error after giving the correct output, which is allowableallowed by default.

><> and Whitespace exit with an error after giving the correct output, which is allowable by default.

><> and Whitespace exit with an error after giving the correct output, which is allowed by default.

+2 languages
Source Link
fireflame241
  • 16.4k
  • 2
  • 31
  • 74

79 Languages, 193217 bytes

2/3#^4 9  5 if 1: x="+++++++[>+++++++<-]>."#3 R = input() try: print(int(eval(chr(49)+chr(47)+chr(40)+chr(49)+chr(47)+chr(50)+chr(41))*int(R))) except: print(7**int(R)) R="6"#N; n=2 R 

><> exitsand Whitespace exit with an error after giving the correct output, which is allowable by default.

2/3#^4 9 -- the IP travels right (pushing 2) until it hits `/` f -- it travels up (pushing f=15) until it hits `/` -- it travels right (pushing 3) until it hits `#` -- it travels left (pushing 3) until it hits `/` -- it travels down (pushing f=15) until it hits `/` -- it travels left (pushing 2 then 9 then 4) until it hits `^` -- it travels up. When it hits `n`, it prints the 4 -- it then hits some characters ><> doesn't like, -- ending the program with an error. n  

Fission

Fission sees:

R="6"#N; R - start an IP/atom going right " - start string 6 - 6 " - end string N - add newline ; - end program. (implicit) print 

(it sees other lines, but those don't affect output) Whitespace

Some of this has likely been lost in copy-paste.

Whitespace sees the following, where N represents linefeed, S represents space, and T represents tab. All actual newlines should be ignored.

NSSN SSSN -- push 0 TN -- print it NTNSNSSNSSSSNSSNSSSSNSSNSSSSNSSSSNSSSSNSSN 

7 Languages, 193 bytes

2/3#^4 9 if 1: x="+++++++[>+++++++<-]>."#3 R = input() try: print(int(eval(chr(49)+chr(47)+chr(40)+chr(49)+chr(47)+chr(50)+chr(41))*int(R))) except: print(7**int(R)) n=2 R 

><> exits with an error after giving the correct output, which is allowable by default.

2/3#^4 9 -- the IP travels right (pushing 2) until it hits `/` f -- it travels up (pushing f=15) until it hits `/` -- it travels right (pushing 3) until it hits `#` -- it travels left (pushing 3) until it hits `/` -- it travels down (pushing f=15) until it hits `/` -- it travels left (pushing 2 then 9 then 4) until it hits `^` -- it travels up. When it hits `n`, it prints the 4 -- it then hits some characters ><> doesn't like, -- ending the program with an error. n 

9 Languages, 217 bytes

2/3#^4 9  5 if 1: x="+++++++[>+++++++<-]>."#3 R = input() try: print(int(eval(chr(49)+chr(47)+chr(40)+chr(49)+chr(47)+chr(50)+chr(41))*int(R))) except: print(7**int(R)) R="6"#N; n=2 R 

><> and Whitespace exit with an error after giving the correct output, which is allowable by default.

2/3#^4 9 -- the IP travels right (pushing 2) until it hits `/` f -- it travels up (pushing f=15) until it hits `/` -- it travels right (pushing 3) until it hits `#` -- it travels left (pushing 3) until it hits `/` -- it travels down (pushing f=15) until it hits `/` -- it travels left (pushing 2 then 9 then 4) until it hits `^` -- it travels up. When it hits `n`, it prints the 4 -- it then hits some characters ><> doesn't like, -- ending the program with an error. n  

Fission

Fission sees:

R="6"#N; R - start an IP/atom going right " - start string 6 - 6 " - end string N - add newline ; - end program. (implicit) print 

(it sees other lines, but those don't affect output) Whitespace

Some of this has likely been lost in copy-paste.

Whitespace sees the following, where N represents linefeed, S represents space, and T represents tab. All actual newlines should be ignored.

NSSN SSSN -- push 0 TN -- print it NTNSNSSNSSSSNSSNSSSSNSSNSSSSNSSSSNSSSSNSSN 
Change ><> to A010709
Source Link
fireflame241
  • 16.4k
  • 2
  • 31
  • 74
Loading
Add Explanation
Source Link
fireflame241
  • 16.4k
  • 2
  • 31
  • 74
Loading
added 179 characters in body
Source Link
fireflame241
  • 16.4k
  • 2
  • 31
  • 74
Loading
Source Link
fireflame241
  • 16.4k
  • 2
  • 31
  • 74
Loading