Skip to content

Instantly share code, notes, and snippets.

@rootn3rd
Last active January 14, 2022 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rootn3rd/0e738923d1df6f25d050e23f89b7c7a9 to your computer and use it in GitHub Desktop.
Save rootn3rd/0e738923d1df6f25d050e23f89b7c7a9 to your computer and use it in GitHub Desktop.
Quine C#
class Program
{
static void Main(string[] args)
{
var s = @"class Program {{
static void Main(string[] args) {{
var s = @{0}{1}{0};
System.Console.WriteLine(s, (char)34, s);
}}
}}";
System.Console.WriteLine(s, (char)34, s);
}
}
@MarijnKneppersSMC
Copy link

you forgot to add an @ in front of {0}{1}{0}. This quine is false.

@rootn3rd
Copy link
Author

Indeed it is. Thanks for pointing it out. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment