c语言;水仙花数程序
来源: 时间:2024-11-12 04:15
#include<stdio.h> #include<stdlib.h> #include<math.h> int main() { int i=0; int count=0; int num=0; int tmp=0; scanf_s("%d",&i) if(i!=0); { while(i) { count++; i=/10; } printf(“%d位数 n",count); } else { printf("1 位数n"); } while(i/10) { tmp+=pow(i%10,count); i=i/10; } if(tmp=1) { printf("水仙花数n"); } system("pause"); return 0;
12345678910111213141516171819202122232425262728293031323334相关知识
C语言:输出所有的水仙花数
vs水仙花数c语言代码,求水仙花数c语言代码怎么写
C语言编写水仙花数
C语言:PAT练习:水仙花数( T & F)
1028: 判断水仙花数(C语言)
水仙花数C语言代码优化
水仙花数,C语言
【C语言】求水仙花数(完整代码)
C语言判断水仙花数
C语言入门:判断水仙花数(100~999)
原文链接: c语言;水仙花数程序 https://www.huajiangbk.com/newsview501830.html
| 上一篇: 种植+经营+绿化工程 新模式让新... | 下一篇: R语言的apply族函数 |
推荐分享

- 1明日花キララ:明日花绮罗年度... 24678
- 2明日花キララ(明日花绮罗)经... 14482
- 3家庭养花知识大全 家庭养花有... 9865
- 4家庭养花风水知识 家庭养花“... 9576
- 5兰花叶子扭的是什么兰 8870
- 6五月天婷婷开心六月丁香:音乐... 8559
- 7君子兰什么品种最名贵 十大名... 8312
- 8秋天养花,掌握这5点养花知识... 8088
- 9十大致癌花卉排行榜,哪些花卉... 7912
- 10【花卉知识 】养花须知:新手... 7691
分享热点排名




