func factorial args: int a : returns: int { int factorial = a repeat int i = (a - 1) : i == 0 : i-- { factorial *= i } return factorial }