A command-line triangle calculator