We’re rewarding the question askers & reputations are being recalculated! Read more.

New answers tagged

1

3 Languages, 274 Bytes #define b++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+> #include<stdio.h> #define p(x)int main(){printf("नमस्ते दुनिया!");} #if 0 p=print goto=len goto("endif") s="Helo Byd!"; #endif p(s) C:नमस्ते दुनिया! Python: Helo ...


1

Keg/><>, 246 123 103 bytes "This program wasn't written in ><> it was built for Keg!"r>o<ø“0⊂kB7≤1⑵“` in Keg, it` “034⊂06“` ><>!` -23 bytes saved to using string compression methods Try it online! (><>) TIO will be added after Keg is updated. Answer History 123 bytes "This program wasn't written in ><> it was ...


2

Turing Machine Code and Whitespace, 85 bytes Full 0 _ a r 1 ; ; ; ; 1 _ b r 2 ; ; ; ; ; ; ; 2 _ c * 3 ; ; ; ; ; ; ; ; ; ; Works in Turing Machine Code Errors in Whitespace: Prelude.!!: index too large Reduced Works in Whitespace Errors in Turing Machine Code: Halted. No rule for state '0' and symbol '...


2

CJam and Gaia, 15 bytes (CJam only cares about printable ASCII, so Gaia's codepage can be used to encode both programs) Full: 'a'b'c'” 'ọ;e< Works in CJam Errors in Gaia Reduced: abc”'ọe Works in Gaia Errors in CJam Explanation This takes some advantage of the fact that ' defines a character literal in both languages. Full program: We push ...


3

C++ (gcc) / C (gcc), 87 bytes Full (C++) //* #import<cstdio> main(){puts("abc"/*// m_a_i_n_(_)_{_p_u_t_s_(_"_a_b_c_"_/*/ ) ; } Skipped (C) /*#motcti>mi({us"b"*/main(){puts("abc"// );} Full C++, Working Skipped C++, Error Full C, Error Skipped C, Working


5

Japt and Pyth, 20 bytes Both are shortenings of common scripting languages, nice Japt: "_a_b_c_"v ë2,1 +[] (TIO, error in Pyth) Pyth: "abc" 21 [ (TIO, error in Japt)


6

Keg, 21 19 bytes (19 17 characters) abc#1 / ╘ " a b c Try it online! Simply prints abc and the rest is a comment. Fails in MathGolf due to an undefined operator overload of /. / can not work on an integer (1) and a string( pushed via the space instruction.) MathGolf ac1/╘"abc Try it online! Does a bunch of nonsense, then ╘ deletes the whole stack. "...


2

JavaScript (V8) and PHP, 29 bytes Full: print`abc`;'e_c_h_o_ _a_b_c'; Skipped: pitac;echo abc; JavaScript, Full - Try it online! Prints: abc PHP, Skipped - Try it online! Prints: abc JavaScript, Skipped - Try it online! Error: SyntaxError: Unexpected identifier PHP, Full - Try it online! Error: abc: command not found


3

PHP and Emoji, 21 chars, 30 bytes Full: ⛽_a_b_c_🚘➡➡;echo abc; Skipped: ⛽abc🚘➡eh b; PHP, Full - Try it online! Prints: abc Emoji, Skipped - Try it online! Prints: abc PHP, Skipped - Try it online! Error: PHP Parse error: syntax error, unexpected 'b' (T_STRING) Emoji, Full - Try it online! Error: IndexError: pop from empty list


6

brainfuck, 28 26 bytes a+b[c-/[/---<]>>- ]<-.+.+. Try it online! Got the bf code from here. Fails in Ink due to Expected target for new thread but saw '.+.+.'. ink abc//-<>-]-++ Try it online! Ink will just print abc and the rest is a comment. Fails in brainfuck due to mismatched bracket.


3

3 4 languages, outputs 20 Actually:Japanese 05AB1E:Vietnamese Emoji:Danish Underload:Cantonese This answer is inspired by this answer. Let's see whether I can fit in the 4th 5th language in 20 characters. (廿)"二十""hai"💬tyve💬➡S Try it online in Actually! Try it online in 05AB1E! Try it online in Emoji! Try it online in Underload! Explanation ...


13

6 languages, prints 80 //'Ÿ¯"y"«q áttatíu/* ";" åo 八 t? 十 t@ " io o oo @ "o 0o 1 K`ochenta (There's also 5/90 solution with a different approach in the edit history if you're interested) 05AB1E/English - eighty //'Ÿ¯"y"«q // # no-ops 'Ÿ¯ # push dictionary string "eight" "y" # push literal string "y" « # ...


10

3 Languages, 800 chars PHP, Norwegian, Outputs ÅTTE HUNDRE Emoji, Persian, Outputs هشتصد COW, English, Outputs EIGHT HUNDRED <?=['ÅTTE HUNDRE','⛽هشتصد🚘➡',' MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MMM MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO ...


31

9 10 12 13 16 18 21 23 languages, 1000 bytes Bash (prints "duizend", Dutch) Zsh (prints "een Dausend", Luxembourgish) Dash (and other true POSIX shells) (prints "nje mije", Albanian) C (prints "et tusind", Danish) C++ (prints "ib txhiab", Hmong) brainfuck (prints "mille", Italian) boolfuck (prints "afe", Samoan) Brainlove (prints "mil", Spanish) 2DFuck (...


9

3 8 9 languages, 300 characters //®di.•paü¾p•ë"兩百"„„í°¡r\}q💬trescientos💬➡\u000A\u002F\u002A //\ {{Write("trois cent"/*\u002A\u002Finterface M{static void main(String[]a){System.out.print("driehonderd" /* #include<stdio.h> int main(){{puts(sizeof'a'<sizeof(int)?"...


3

278. Extended Brainfuck Type I, 13163 bytes #16 "($?63lv+'50;+'51;5 5 %$\--2$[# #@$]aat_" /*{\D8gv ef26q[if.q8=P,k]PPX~_~^xy)\('#CO|"14" 7 9 7 9 7 222222222222222222222222 ##*/ #/*1&7//```"` [>.> .]~~)[-'][(7aat r>77*,68*,R@'_)(22)S iii/ \...


Top 50 recent answers are included