finished c factorial program