logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

C++ 求n的阶乘n!(n>0)

一、方法1:用循环#include <iostream>using namespace std;int main(int argc, const char * argv[]) {    int i, n, res; // res存储积        // 输入测试数据n    while(cin >> n) {        res = 1;

到底了