src2020/1659_n!/doc/Readme.md

18 lines
287 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 『入门』递归专题求n!的值
[问题描述]
教学案例,必须使用递归函数完成求解!
   n!=1*2*...*n。例5!=1*2*3*4*5=120。编程求n!
[输入格式]
  一个整数n n <= 15
[输出格式]
  一个整数n!的运算结果。
[输入样例]
3
[输出样例]
6