摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <iostream> 3 4 using namespace std; 5 //用递归求某一项的阶乘的值 6 int fun(int i)//求第i项的值 7 { 8 if (1 == i) 9 return 阅读全文
posted @ 2022-09-25 23:23 伸手见五指 阅读(597) 评论(0) 推荐(0)
摘要: ​ 提示:如果三位数ABC满足ABC=A3+B3+C3,则称其为水仙花数 废话不多说,直接上代码,注意看注释要对自己负责 #define _CRT_SECURE_NO_WARNINGS #include <iostream> using namespace std; //用递归求某一项的阶乘的值 i 阅读全文
posted @ 2022-09-25 23:13 伸手见五指 阅读(437) 评论(0) 推荐(0)