##C#, 105 117 109 107 101 99 59 bytes
C#, 105 117 109 107 101 99 59 bytes
Golfed
void m(ulong u){while(u>=0)System.Console.WriteLine(u--);}
Ungolfed
void m( ulong u ) {
while (u >= 0)
System.Console.WriteLine(u--);
}
Releases
- v3.0 -
-40 bytes
- Changed the output to directly print to the console with a new line at the end. This update allows the usage ofulong
. Once again, this is thanks to hstde. - v2.4 -
-2 bytes
- Replacedlong
withint
due to the limitations of the capacity ofList<T>
, which is capped to the max ofInt32.MaxValue
in the implementation. The reason for changing toint
can be found here. You can also explore this limitation in Reference Source. - v2.3 -
-6 bytes
- Usingvar
instead ofList<long>
. Thanks to hstde. - v2.2 -
-2 bytes
- Fixed the decrements of the counter and removed brackets. - v2.1 -
-8 bytes
- Update to use the argument, making the code shorter and faster. - v2.0 -
+12 bytes
- Update toList<>
since arrays max size isInt32.MaxValue == 2 ^ 32 - 1
- v1.0 -
105 bytes
- Initial release