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胡椒木盆景从上盆制作到养护,... 74369
- 2明日花キララ:明日花绮罗年度... 54306
- 3明日花キララ(明日花绮罗)经... 31498
- 4五月天婷婷开心六月丁香:音乐... 20531
- 5兰花叶子扭的是什么兰 18746
- 6仙人球“水蜜桃”—又美又仙,... 18101
- 7十大致癌花卉排行榜,哪些花卉... 16697
- 8超简单,3个步骤带你学会毛线... 16124
- 9老师精选05—河北彩花(出道... 15649
- 10李晓明工笔牡丹(魏紫)《牡丹... 14968
分享热点排名




