blob: f0d1979429e5bb719f923cb28ef346d1541ea49a [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FACTORIAL_H_
#define FACTORIAL_H_
namespace factorial {
// Returns n! (the factorial of n). For negative n, n! is defined to be 1.
int Factorial(int n);
} // namespace factorial
#endif // FACTORIAL_H_