-
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数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
-
分别完成了异步发送电路,接收电路的设计,并把发送和接收电路组合在一起,构成通信控制器。...
分别完成了异步发送电路,接收电路的设计,并把发送和接收电路组合在一起,构成通信控制器。-Send completed asynchronous circuit, receiving circuit design, and to send and receive circuit together constitute the communication controller.
- 2022-07-14 03:03:02下载
- 积分:1
-
This my freshman year when do sin (x) source, the realization of library functio...
这是我大一的时候做的sin(x)源程序,库函数的实现-This my freshman year when do sin (x) source, the realization of library functions
- 2023-04-06 15:25:03下载
- 积分:1
-
实验一 熟悉操作系统工作环境
实验二 Linux进程通信程序设计
实验三 Windows服务程序设计
实验四 进度调度程序设计及分析
实验五 存...
实验一 熟悉操作系统工作环境
实验二 Linux进程通信程序设计
实验三 Windows服务程序设计
实验四 进度调度程序设计及分析
实验五 存储管理程序设计及分析-experiment a familiar working environment operating system Linux process two experimental communication program design Wind Experiment 3 Diego experimental design services for the progress of four scheduling program design and analysis of experiments five storage management program design and analysis
- 2022-02-14 17:24:23下载
- 积分:1
-
实现简单的MIMO
实现简单的MIMO-OFDM系统性能仿真-Realize a simple MIMO-OFDM system performance simulation
- 2022-02-28 13:40:07下载
- 积分:1
-
太阳能控制器PCB电路与SCH原理图 太阳能控制器PCB电路与SCH原理图...
太阳能控制器PCB电路与SCH原理图 太阳能控制器PCB电路与SCH原理图-failed to translate
- 2023-05-28 15:25:03下载
- 积分:1
-
A battery charger (LEAD ACID)
A battery charger (LEAD ACID)
- 2022-10-20 21:50:03下载
- 积分:1
-
- 2023-02-18 13:20:03下载
- 积分:1
-
Sokoban Game: users can set the clearance to set up a few more difficult to choo...
推箱子游戏:用户可以通过设置关数来设置难度,选择是否有音效,用户只能通过键盘上的四个方向键来操作,目标是移动“小人”将三个方形的黄色箱子移到三个白色的圆圈里面。-Sokoban Game: users can set the clearance to set up a few more difficult to choose whether or not there is sound, the user only through the four keyboard arrow keys to operate, with the aim of moving
- 2022-03-10 12:00:04下载
- 积分:1
-
经典的起泡排序代码,可以显示每一步的过程
经典的起泡排序代码,可以显示每一步的过程-classic bubble sort code can demonstrate that the process every step
- 2022-06-29 17:32:01下载
- 积分:1