Computer algorithms work via input and output. They take the input and apply each step of the algorithm to that information to generate an output.