Paul
  • Member for 7 years, 6 months
  • Last seen more than a month ago
156 answers
votes
268k views
Write a program that makes 2 + 2 = 5
20 votes

C# var c = Enumerable.Range(2, 2).Sum(); To someone not familiar, this will look like I'm getting a range starting and ending at 2. In reality, it starts at 2 and goes for two numbers. So 2 + 3 = ...

View answer
29 answers
votes
2k views
Rearrange a number into alphabetical order
1 votes

Firebird, 317 bytes Golfed: select list(s,'')from(with recursive q as(select 1 p,substring(:a from 1 for 1)s from rdb$database q union all select q.p+1 p,substring(:a from q.p+1 for 1)s from q where ...

View answer
81 answers
votes
11k views
Play the "bzzt" game
1 votes

Delphi - 119 repeat ShowMessage(IfThen((Tag mod 3=0) or (pos('3',IntToStr(Tag))>0),'bzzt',IntToStr(Tag))); Tag:=Tag+1 until Tag=500 Uses the fact that "self" is assumed so the form's Tag property ...

View answer