A polyquine is both quine and polyglot.1 You are to write a quine which is valid in at least two different languages. This is code golf, so the shortest answer (in bytes) wins.
1 I made that up. Or ...
Program A outputs program B's code when run, and B outputs A's source.
Only one language across both programs
Programs are different. One program that outputs itself does not qualify. ...
From Quine central:
Write a quine that takes as input the name of a language and outputs the same thing implemented in the input language.
The source article has something you can work from, but as ...
This challenge is similar to Can you Meta Quine?
A quine is a program that produces itself on STDOUT. This challenge is to produce a program A which when run produces a program B on STDOUT. Program B ...
Write 3 programs that do the following task:
Let A, B, C source codes of those three programs;
if A runs BC is produced as output,
if B runs CA is produced,
if C runs AB is produced;
so each program ...
Your task is to write a program that outputs its own source code in reverse. However, when the reversed code is run, it should output the source code, facing the correct direction.
Say your ...