-
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数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
-
This is a system called some of the functions of the dialog box procedure, inclu...
这是一个调用系统中的一些功能对话框的程序,包括显示“打开方式”对话框、打印测试页、映射网络驱动器等等,共有超过20个不同的功能-This is a system called some of the functions of the dialog box procedure, including shows that the "open approach" dialog box, print a test page, map network drives, etc., a total of over 20 different functions
- 2022-06-20 23:39:20下载
- 积分:1
-
用VF所编的管理系统
用VF所编的管理系统-with VF prepared by the Management System
- 2022-06-13 13:35:31下载
- 积分:1
-
AVR单片机ATmega8 nema42步进控制器驱动程序
应用背景ATmega8单片机连接到dm2722的步进电机驱动器。电机nema42可以从零开始到24 kHz的频率和回。这些部分的窦性数据是非常重要的另一个步进电机的例程,因为步进电机必须斜坡缓慢和精确。关键技术文件中包括停止,套路几加速增加,电机和谁定义了输出频率的PWM定时器中断设置。这几天工作直到电动机工作可靠无滴。任何一滴或几滴失败都会给步进电机停止或故障。窦是最好的和最快的方式,以达到所需的速度。对于数据的生成有优于文件,但这并不包括英文说明。如果有人需要的话,我可以坐下来做描述,然后上传到这里。这与你创造理想的斜坡从任何速度,任何速度的电机数据表的帮助。
- 2022-02-21 15:42:09下载
- 积分:1
-
非常好用的TC编译工具,文件不大,功能齐全.
非常好用的TC编译工具,文件不大,功能齐全.-very handy TC compiler tools, not documentation, complete functions.
- 2022-02-09 11:06:34下载
- 积分:1
-
windows TTF 字型的delphi reader
windows TTF 字型的delphi reader-windows TTF font delphi reader
- 2023-03-13 07:25:04下载
- 积分:1
-
lpc2xxx Development Board of USB driver software configuration. PDF
lpc2xxx 开发板中 USB驱动程序软件包的配置.PDF-lpc2xxx Development Board of USB driver software configuration. PDF
- 2022-03-06 18:52:59下载
- 积分:1
-
bayes分类器,本程序根据病人症状可初步诊断疾病
bayes分类器,本程序根据病人症状可初步诊断疾病-Bayes classifier, this procedure can be based on the patient"s symptoms preliminary diagnosis of diseases
- 2022-04-17 22:14:55下载
- 积分:1
-
所有剩余的磁盘空间覆盖后,完成自动删除…
全部磁盘剩余空间覆盖,完成后可自动删除,适用保密检查等-All the remaining disk space coverage is automatically deleted after the completion of applicable security inspection, etc.
- 2022-08-20 16:31:12下载
- 积分:1
-
This programs connect to Weigh scale. & shows the actual value.
This programs connect to Weigh scale. & shows the actual value.
- 2023-06-27 05:55:03下载
- 积分:1