-
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数N(0≤N≤1000000000000)的...
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数N(0≤N≤1000000000000)的根。
输入:
输入有多个案例。每一个案例为一行,每行只有一个整数N。当输入的N是-1时,输入结束。
输出:
每一个案例输出一行。每行只有一个数字,就是N对应的数根。
Sample input
39
-1
Sample output
3-Number of root number also has roots do? There is! The number of roots is to a number of different values on the digital sum until they have been a number of up to one. Please write a program to calculate an arbitrary number N (0 ≤ N ≤ 1000000000000) roots. Input: Enter a number of cases. Each case for the line, each line is only an integer N. When the input of N is-1, the input end. Output: the output line of each case. There is only one number per line, that is, N corresponds to the number of roots. Sample input 39-1 Sample output 3
- 2023-09-05 21:25:03下载
- 积分:1
-
ASN1_BER_DER编码子集入门指南,指导asn1的开发
ASN1_BER_DER编码子集入门指南,指导asn1的开发-ASN1_BER_DER coding subset portal guide to the development asn1
- 2022-11-11 03:00:04下载
- 积分:1
-
IIS5.0 to install the required system files appconf.d
IIS5.0安装所需的系统文件 appconf.d-IIS5.0 to install the required system files appconf.d
- 2022-09-01 18:25:03下载
- 积分:1
-
服务应用服务应用
service application service application
- 2022-09-12 14:40:02下载
- 积分:1
-
数据结构实验
(1)新建一个单链表:List BuildList(List lst)(2) 打印单链表:void PrintList(List first)(3)在单链表中某个位置后面插入元素:bool Insert( List lst , T x , T y)(4)清空单链表:void Clear(List * first)(5)查找链表中是否存在某个元素:bool Search(List lst,T x) 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-05-29 10:07:17下载
- 积分:1
-
此代码是本人一年前所编写 对JAVA初学者可能会又帮助 在数据库连接上 效率较高...
此代码是本人一年前所编写 对JAVA初学者可能会又帮助 在数据库连接上 效率较高-year ago, I prepared for Java beginners may also help connect the database more efficient
- 2023-08-01 16:30:04下载
- 积分:1
-
涡轮是一个客户端的魔术在线
Turbo Magic Online is a client-server internet multiplayer game in which people play games of Magic: the Gathering against each other. -Turbo Magic Online is a client-server INTE campus multiplayer game in which people play game s of Magic : the Gathering against each other.
- 2023-03-07 02:30:04下载
- 积分:1
-
犯错
VC实验:
一.实验名称:掌握基于MFC的资源应用
二.实验目的:通过基于MFC编写基于资源的应用程序,进一步掌握资源的应用,并与SDK编程方法比较
三.实验任务:
● 掌握基于MFC的资源应用程序管理
● 掌握各种资源的类库结构
● 熟悉资源的应用
四.实验要求:
新建一个对话框,其中有文件,编辑,和帮助菜单,其中在文件菜单中有新建,打开,另存为,页面设置,打印和退出选项。选择文件菜单中的打开时,弹出打开通用对话框,选择文件菜单中的另存为时,弹出打开另存为通用对话框。编辑菜单中有颜色和字体选项,选择编辑菜单中的颜色时,弹出打开通用另存为颜色对话框,选择编辑菜单中的另字体时,弹出打开字体通用对话框。
-err
- 2022-03-23 20:25:29下载
- 积分:1
-
RA control of the sorting system to achieve another source :) in the company'...
RA控制分拣系统的另一个源代码实现:),可以在该公司的RSLogix5000软件下运行-RA control of the sorting system to achieve another source :) in the company"s software running RSLogix5000
- 2022-08-09 02:57:22下载
- 积分:1
-
这个论坛相当不错.asp编写.需要的可以
这个论坛相当不错.asp编写.需要的可以-this forum is quite good. Asp prepared. The implications need to be
- 2023-06-01 21:45:04下载
- 积分:1