-
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数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
-
建筑物防雷相关软件
计算建筑物雷击等效面积
建筑物防雷相关软件
计算建筑物雷击等效面积-Building lightning protection software calculate the equivalent area of the building struck by lightning
- 2023-08-29 21:00:04下载
- 积分:1
-
该例子中工具栏上显示字幕
该例子中工具栏上显示字幕-the examples shown on the toolbar subtitles
- 2022-03-18 16:45:01下载
- 积分:1
-
建筑工程类的一些规范,欢迎下载,或许有用
建筑工程类的一些规范,欢迎下载,或许有用-some kind of construction norms, welcome to download, perhaps useful
- 2022-03-03 15:55:07下载
- 积分:1
-
GUI界面菜单设计,包含了gui界面设计的源代码
GUI界面菜单设计,包含了gui界面设计的源代码-GUI interface, menu design, contains the source code gui interface design
- 2022-12-09 16:05:03下载
- 积分:1
-
小精灵游戏开发
小精灵游戏开发吃豆豆的小游戏有很详细的教学过程
- 2022-06-30 11:57:04下载
- 积分:1
-
计算时间,日期的函数. 大家可以下载后直接使用。 在C 下面的共通函数。...
计算时间,日期的函数. 大家可以下载后直接使用。 在C 下面的共通函数。-calculated time, date functions. Members can download directly after use. C in the following common function.
- 2022-01-31 09:52:29下载
- 积分:1
-
restoring除法器设计
经典算法了,可以仿真通过
restoring除法器设计
经典算法了,可以仿真通过-divider restoring a classical algorithm design, simulation can be adopted
- 2023-01-21 00:50:03下载
- 积分:1
-
网站形式的客户系统,可直接提出问题,也可以查看各种问题的答案....
网站形式的客户系统,可直接提出问题,也可以查看各种问题的答案.-Site forms of client systems can be directly put questions to, can view a variety of answers to these questions.
- 2022-04-30 09:55:31下载
- 积分:1
-
DAC,它是一个很好的
DAC,it is very good for some one
- 2022-07-02 21:56:10下载
- 积分:1