firsth.cpp
来自「N阶乘的 运算。可实现 50一下数字的 N阶乘运算 。」· C++ 代码 · 共 19 行
CPP
19 行
#include"firstH.h"
void show()
{
cout<<"This is a project about n!"<<endl;
cout<<"please input an integer:"<<endl;
}
void FuncA(int a,int n)
{
int i;
if(n<0)
cout<<"error!"<<endl;
else
{
for(i=1;i<=n;i++)
a=a*i;
cout<<"n!="<<a<<endl;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?