Factorial

Run Settings
LanguageD
Language Version
Run Command
import std.stdio; int factorial(int n) { if (n == 0) return 1; return n * factorial(n - 1); } void main() { static immutable fact = factorial(5); writeln(fact); }
Editor Settings
Theme
Key bindings
Full width
Lines