Skip to main content
5 of 6
added 5 characters in body
Adalynn
  • 6.2k
  • 1
  • 18
  • 36

9. Befunge-93, 221 bytes

void main(){//\ /*SmiVZZ;ooo"><>" #define S"" #ifdef __OBJC__ #define S"-evitcejbO" #endif printf("C"S)/*/import std.stdio;"D".write/**/;}/* >"Befunge-98";"Befunge-93",,,,,,,,,,@;9k,@ ,wVkk_,xeWvl<h_VZUn*///⎚laocrahC 

Thanks to @JoKing for pointing out that I forgot a 9.

Try it online!

Try it online! (Vim)

Prints 39-egnufeB in Befunge-93, along with maintaining the other outputs in the other languages.

Next answer cannot exceed 287 bytes.

Will work in MTFI, and input must be given for PyFunge. #Hexdump

00000000: 766f 6964 206d 6169 6e28 297b 2f2f 5c0a void main(){//\. 00000010: 2f2a 1b53 6d69 561b 5a5a 3b6f 6f6f 223e /*.SmiV.ZZ;ooo"> 00000020: 3c3e 220a 2364 6566 696e 6520 5322 220a <>".#define S"". 00000030: 2369 6664 6566 205f 5f4f 424a 435f 5f0a #ifdef __OBJC__. 00000040: 2364 6566 696e 6520 5322 2d65 7669 7463 #define S"-evitc 00000050: 656a 624f 220a 2365 6e64 6966 0a70 7269 ejbO".#endif.pri 00000060: 6e74 6628 2243 2253 292f 2a2f 696d 706f ntf("C"S)/*/impo 00000070: 7274 2073 7464 2e73 7464 696f 3b22 4422 rt std.stdio;"D" 00000080: 2e77 7269 7465 2f2a 2a2f 3b7d 2f2a 0a3e .write/**/;}/*.> 00000090: 2242 6566 756e 6765 2d39 3822 3b22 4265 "Befunge-98";"Be 000000a0: 6675 6e67 652d 3933 222c 2c2c 2c2c 2c2c funge-93",,,,,,, 000000b0: 2c2c 2c40 3b39 6b2c 400a 202c 7756 6b6b ,,,@;9k,@. ,wVkk 000000c0: 5f2c 7865 5776 6c3c 685f 565a 556e 2a2f _,xeWvl<h_VZUn*/ 000000d0: 2f2f e28e 9a6c 616f 6372 6168 43 //...laocrahC 

#How?

Befunge-93 does not know what ; is (in Befunge-98, it skips commands until the next ;), so it ignores it. Allowing us to distinguish the two versions of Befunge.

Adalynn
  • 6.2k
  • 1
  • 18
  • 36