Problem1119--简单阶乘计算

1119: 简单阶乘计算

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 1
[Submit] [Status] [Web Board] [Creator:]

Description

本题要求实现一个计算非负整数阶乘的简单函数。 函数接口定义: int Factorial( const int N ); 其中N是用户传入的参数,其值不超过12。如果N是非负整数,则该函数必须返回N的阶乘,否则返回0。 裁判测试程序样例: #include int Factorial( const int N ); int main() { int N, NF; scanf(

Input

非负整数N

Output

非负整数N

Sample Input Copy

5

Sample Output Copy

5! = 120

Source/Category