-
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数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
-
内含24点游戏,飞机订票系统和火车信息查询系统以及课设论文,注释非常详细,相信对学...
内含24点游戏,飞机订票系统和火车信息查询系统以及课设论文,注释非常详细,相信对学-intron 24-point game, the aircraft booking system and trains and the Information Systems Office located thesis, Notes is very detailed, I believe for school
- 2022-08-14 21:12:20下载
- 积分:1
-
vb源代码,这是一个非常不错的程序,有很多的查询代码。一用更知...
vb源代码,这是一个非常不错的程序,有很多的查询代码。一用更知-vb source code, which is a very good procedure, a lot of inquiries code. With a better understanding
- 2022-05-19 20:35:27下载
- 积分:1
-
这是外汇活动中的一种 可以从多种货币的汇率差异中,获得利润,本程序只需把汇率写入一个txt文件,即可算出能获得利润的套汇路径...
这是外汇活动中的一种 可以从多种货币的汇率差异中,获得利润,本程序只需把汇率写入一个txt文件,即可算出能获得利润的套汇路径-activities from a variety of differences in currency exchange rates, profit, the program can be put into an exchange rate txt file, can be calculated by the arbitrage profits path
- 2023-01-15 23:45:03下载
- 积分:1
-
inter电脑主板电路原理图,私家收藏网上是找不到的!
inter电脑主板电路原理图,私家收藏网上是找不到的!-inter computer motherboard circuit diagram, private collections are not to be found online!
- 2023-06-29 21:20:06下载
- 积分:1
-
该文件夹给出了卷积编码、交织及维特比软译码仿真程序
该文件夹给出了卷积编码、交织及维特比软译码仿真程序-The folder is a convolutional coding, weaving and Viterbi decoding software simulation program
- 2022-01-21 00:39:06下载
- 积分:1
-
俄罗斯方块开发UCGUI嵌入式平台下
在ucGUI嵌入式平台下开发的俄罗斯方块,代码精简-Russian block developped under ucGUI embedded platform
- 2022-10-23 09:30:03下载
- 积分:1
-
华为h.248协议介绍
华为h.248协议介绍-Huawei H.248 protocol introduction
- 2022-09-07 02:15:03下载
- 积分:1
-
this is very good application for face traccking.it contains more and good diffe...
this very good application for face traccking.it contains more and good differnt features.if u rotate face right side it will show the direction for rignt side.if u rotate face left side it will show the direction for left side.-this is very good application for face traccking.it contains more and good differnt features.if u rotate face right side it will show the direction for rignt side.if u rotate face left side it will show the direction for left side.
- 2023-03-03 08:15:04下载
- 积分:1
-
效率很高的“猜数字”游戏程序解法(至多7次,平均小于5.5次...
效率很高的“猜数字”游戏程序解法(至多7次,平均小于5.5次-very efficient "viewing" game procedures Solution (up to seven times less than the average 5.5
- 2022-02-13 05:10:57下载
- 积分:1