I hereby claim:
- I am naamloos on github.
- I am naamloos (https://keybase.io/naamloos) on keybase.
- I have a public key whose fingerprint is 317D 3139 3C67 FA2E 0DC5 7A58 67F1 AB1E 5505 4AAA
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
string.Join(' ',new int[100].Select((_,x)=>x%15==0?"fizzbuzz":x%3==0?"fizz":x%5==0?"buzz":$"{x}")) |
// Geen zin libraries te importen / rewriten met liraries in mind | |
// dus dan maar het wiel overnieuw uitvinden | |
// is waarschijnlijk veel trager dan string.split | |
// maar er staan commas in mijn comma separated values :( | |
public static string[] SplitCsv(this string input) | |
{ | |
// values to return | |
List<string> values = new List<string>(); |
var fs = new StreamWriter("output.txt"); | |
var sb = new StringBuilder(); | |
for (var i = 1; i <= 100; i++) | |
{ | |
bool fizz = i % 3 == 0; | |
bool buzz = i % 5 == 0; | |
sb.Append($"{i}: "); | |
sb.Append(fizz ? "fizz" : ""); |