import std.stdio;

void main()
{
    writeln("Enter a number:");
    int input;
    readf("%d", &input);
    writeln("Factorial:", factorial(input));
}

int factorial(int n)
{
    if (n <= 1)
        return 1;
    return n * factorial(n - 1);
}

Options: Vala, Crystal, D, Nim

Use the following link to guess an answer, answer + results posted in 12 hours. (If you say the answer in the replies please put it in spoiler tags)

https://strawpoll.com/Qrgebk7PKZp

  • kool_newt
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 months ago

    Wow never heard of Vala. I choose that one.

    • Butt Pirate@reddthat.com
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      11 months ago

      Vala is popular in the Linux world. It’s goal is to make GUI programming easy in the gnome desktop environment. It transpiles to C.