题目内容
读下列程序,写出程序的运行结果。#include double fact(int n);int main(){ int n;scanf ("%d", &n);printf ("%.0f\n", fact (n) );return 0;}double fact(int n){double result;if (n==1 || n == 0)result = 1;elseresult = n * fact(n-1);return result;}输入:5输出:
查看答案
搜索结果不匹配?点我反馈
更多问题