-
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数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
-
One very good wide VB icon editing tool, but also just ordinary, it is in Englis...
一宽非常好VB图标编辑工具,不过也只是普通的,本来是英文的我只是把他汉化了!-One very good wide VB icon editing tool, but also just ordinary, it is in English I just finished him!
- 2022-03-18 01:26:00下载
- 积分:1
-
CRT ECG NONITOR using Interrupt Sampling. ECG output to DAC, drawn bidirectional...
CRT ECG NONITOR using Interrupt Sampling. ECG output to DAC, drawn bidirectionaly.
ECG also outputed through RS232 using final year project real-time frame structure.-CRT ECG NONITOR using Interrupt Sampling. ECG output to DAC, drawn bidirectionaly.
ECG also outputed through RS232 using final year project real-time frame structure.
- 2022-04-18 16:41:40下载
- 积分:1
-
一个ERP源码,包括进销存/财务/生产制造等系统,已经成功应用于多家单位....
一个ERP源码,包括进销存/财务/生产制造等系统,已经成功应用于多家单位.- A ERP source code, including sells saves/system and so on
financial/production manufacture, already succeeded applies to many
units
- 2022-08-22 12:41:05下载
- 积分:1
-
简单的绘图编程
划直线水平线随手画直线椭圆位图
简单的绘图编程
划直线水平线随手画直线椭圆位图-simple graphics programming is readily horizontally straight line drawing elliptical bitmap
- 2022-03-14 05:35:44下载
- 积分:1
-
支撑向量机训练算法研究,很好的参考资料,有兴趣的可以下载...
支撑向量机训练算法研究,很好的参考资料,有兴趣的可以下载-Support vector machine training algorithm research, a good reference, are interested in can be downloaded
- 2022-01-26 03:33:12下载
- 积分:1
-
一个非常好的c++编译器,不比visual c++差多少,代码非常规范
一个非常好的c++编译器,不比visual c++差多少,代码非常规范-a very good c compiler, unlike visual c bad number, code very norms
- 2022-02-26 03:05:49下载
- 积分:1
-
木翼下载系统
木翼下载系统-my download ..................................
- 2022-04-01 05:16:56下载
- 积分:1
-
NS81 FM/AM tuner driver
NS81 FM/AM tuner driver
- 2022-03-04 08:28:08下载
- 积分:1
-
杨鉴现代信号处理英文ppt,主要学习现代信号处理。
杨鉴现代信号处理英文ppt,主要学习现代信号处理。-Yeung Kam-modern signal processing English ppt, mainly in modern signal processing.
- 2022-03-18 03:52:57下载
- 积分:1