登录
首页 » 其他 » C# 代码演示水仙花求和算法

C# 代码演示水仙花求和算法

于 2022-06-16 发布 文件大小:13.01 kB
0 220
下载积分: 2 下载次数: 1

代码说明:

C# 代码演示水仙花求和算法,关于求和水仙花数的原理:一个三位数,每一位数的立方相加等于该数本身。清空listBox1控件,获取3位数中的后两位数。具体代码可看下面:   //水仙花数的算法是一个三位数,每一位数的立方相加等于该数本身。   private void button1_Click(object sender, EventArgs e)   {    int a = 0, b = 0, c = 0;//定义变量    listBox1.Items.Clear();//清空listBox1控件    for (int i = 100; i

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Hope everyone has to help, there is hope that everyone in the contest, the elect...
    希望对大家有帮助,还有希望大家都能在大赛里,电子设计中,取的好成绩.-Hope everyone has to help, there is hope that everyone in the contest, the electronic design, get good results.
    2022-07-09 12:01:08下载
    积分:1
  • 可视为小到中等大小的公司基本的POS
    A Visual basic POS for small to medium sized companies
    2022-05-06 08:07:18下载
    积分:1
  • code of a classical statistical tools that can help you clear out your search fo...
    一个经典的代码统计工具,可以帮助你清晰的查找出您的代码行数、注释行数、空格行数,希望能有所帮助!-code of a classical statistical tools that can help you clear out your search for the source line number, a few notes. a few spaces, hopes to have help!
    2023-01-05 16:30:04下载
    积分:1
  • 本程序是为了计算日变化的平均值。 输入文件的数据格式是 2006 9 20 0 30 12577 0.263253 2.74975...
    本程序是为了计算日变化的平均值。 输入文件的数据格式是 2006 9 20 0 30 12577 0.263253 2.74975 -0.0157112 0.55523 8.65E-05 -7.9142 17.606 该输入文件按列为:年、月、日、时、分、序号、各量 计算结果将保存在数组里,如T【24】,24表示24小时(因为是1小时的平均)。 对输入文件的行进行循环,计算1小时的平均,该行的数据将累计平均到下标取“时”列的数组中。 -this program is to calculate the average daily change. Data input file format is 2006 9 20 0 30 12577 0.263253 2.74975-0.0157112 0.55523 8.65E-05-7.9142 17.606 of the losers into the document, as : year, month, day, hour, minute, serial number, the calculation results will be stored in the array, such as T [24]. 24 said 24 hours (because it is an hour average). On the importation of paper recycling firms, the calculation of the average one-hour, The data will be the cumulative average subscript taking "when" out of the array.
    2022-07-02 15:40:35下载
    积分:1
  • 好东西需要大家分享,请大家多多指教!有什么不足请指出来!...
    好东西需要大家分享,请大家多多指教!有什么不足请指出来!-Good things everyone needs to share, please exhibitions everyone! Please indicate what are the deficiencies have to!
    2022-03-26 07:00:58下载
    积分:1
  • 国外简约时尚大气jquery幻灯片插件
    国外简约时尚大气jquery幻灯片插件,移至你的网页,用来实现图片推荐、精品推荐版块,相当合适了。本图片切换采用滚动切换的方式,点击缩略图后,大图片左右滚动出现,文字描述则上下滚动出现,形成了极具动感效果的图片展示特效,而且兼容各大浏览器。
    2023-03-08 17:15:04下载
    积分:1
  • 盘尼西林发酵模拟软件,间歇批次生产过程的仿真软件,用于批次过程故障诊断的原始数据采集,很不错,自己仿的比它差远了!...
    盘尼西林发酵模拟软件,间歇批次生产过程的仿真软件,用于批次过程故障诊断的原始数据采集,很不错,自己仿的比它差远了!-Penicillin fermentation simulation software, intermittent batch production process simulation software for fault diagnosis of batch process the raw data collection, a very good imitation of their own far worse than it!
    2023-03-18 15:30:04下载
    积分:1
  • Linux下的socket编程文档!有非常详细的函数说明.Linux下的socket编程必备!...
    Linux下的socket编程文档!有非常详细的函数说明.Linux下的socket编程必备!-Linux socket programming documentation! A very detailed statement function. Linux socket programming required!
    2022-04-11 10:10:20下载
    积分:1
  • : 1, the first "production" box importation of production, "input...
    说明: 1、先在“产生式”框中输入产生式,在“输入的符号串”框中输入待分析的符号串,点击“编译”按钮开始根据产生式分析输入的符号串。 2、在“范例”菜单中可以选择预选的产生式和输入符号串范例,有两个范例,其中书上范例为“范例代码2”。 3、“产生式”框中,“显示消除左递归结果”选中时,执行编译后如果“产生式”框内内容没有变化,则原输入的产生式符合LL(1),否则,“产生式”框内内容将转换为符合LL(1)的文法。-: 1, the first "production" box importation of production, "input string of symbols" input box to the symbol series analysis, Click on the "Build" button to begin production analysis of the input string of symbols. 2, the "paradigm" menu can choose a pre-production series and the importation of symbols example, there are two examples, which book example of "two examples of code." 3, "have a" box, "showed that the elimination of left recursive results" selected, If, after the implementation of compiler "production" box contents have not changed, then the importation of the production line with LL (1), otherwise, "Production" box contents will be converted to meet LL (1) grammar.
    2022-07-23 04:31:15下载
    积分:1
  • 视频录象,人人易懂 XLISP(XL600,XL1000)软件烧写操作视频录像教程...
    视频录象,人人易懂 XLISP(XL600,XL1000)软件烧写操作视频录像教程-Video video, everyone read XLISP (XL600. XL1O00) software video burning operation Video Guide
    2022-02-15 09:18:50下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载