Skip to content

Instantly share code, notes, and snippets.

View ProgramistycznySwir's full-sized avatar
🦸
BLOODY DIABOLICAL!!

Daniel Pietrzeniuk ProgramistycznySwir

🦸
BLOODY DIABOLICAL!!
  • Białystok, Poland
View GitHub Profile
@ProgramistycznySwir
ProgramistycznySwir / FizzBuzz.cs
Created March 23, 2021 21:15
FizzBuzz oneliner in C#
int n = 100;
Console.WriteLine(string.Join('\n',Enumerable.Range(0, n).Select(i => ((i % 3 == 0 ? "Fizz" : "") + (i % 5 == 0 ? "Buzz" : "")) is string ii ? (ii != "" ? ii : i.ToString()) : "")));
@ProgramistycznySwir
ProgramistycznySwir / StroustrupWouldBeProud.cs
Last active July 29, 2022 16:27
I've fixed C#'s I/O by making it as Bjarne Stroustrup intended.
using static System.Console;
namespace NoticeMeSenpai;
public class Program {
const string endl = "\n";
public static int Main() {
S a = "Hello", b = "World!";
C cout, cin, _;