-
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数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
-
个个人自娱乐的扑克牌游戏 ,希望大家能够得到一定的帮助
个个人自娱乐的扑克牌游戏 ,希望大家能够得到一定的帮助-individuals from the entertainment poker games, we hope to get some help! !
- 2022-01-26 15:56:37下载
- 积分:1
-
MAPX中如何控制缩放度
MAPX中如何控制缩放度-Connection control zoom degrees
- 2022-02-26 13:10:58下载
- 积分:1
-
小区物业管理:管理小区的费用、小区工作人员的编排和工资管理、小区的运作、对住户资料的管理、房产资源管理、小区事务的管理、对住户的需要管理、停车场管理...
小区物业管理:管理小区的费用、小区工作人员的编排和工资管理、小区的运作、对住户资料的管理、房产资源管理、小区事务的管理、对住户的需要管理、停车场管理-Area property management: the management of district costs, district staff scheduling and payroll management, district operations, information on household management, property resource management, district management of the affairs of the household needs of management, car park management
- 2023-06-03 09:20:03下载
- 积分:1
-
through the interface configuration, generating a concealed documents and search...
通过界面配置,生成一个隐蔽查找文件及特征关键词的控制台程序。通过运行该控制台程序,就可将查找到的文件名保存到C:\_log.txt文件中了。-through the interface configuration, generating a concealed documents and search features keyword console procedures. By running the console procedures, it can find the file name to save to C : _log.txt the document.
- 2023-06-19 09:55:03下载
- 积分:1
-
SQL生成实体与存储过程的工具,使开发变得非常方便
SQL生成实体与存储过程的工具,使开发变得非常方便
- 2022-03-29 19:36:30下载
- 积分:1
-
一个加法练习的程序。。针对小学生做的。带家教的时候做的。很方便学习...
一个加法练习的程序。。针对小学生做的。带家教的时候做的。很方便学习-an additive to practice procedures. . Elementary students do. With tutor when done. Very facilitate learning
- 2023-06-14 03:55:03下载
- 积分:1
-
TMS320VC5509A芯片支持库
tms320vc5509a chip support library
- 2022-05-16 06:28:58下载
- 积分:1
-
Student achievement management system that enables students to find Billing Divi...
学生成绩管理系统,可查找学生单科目的成绩,也能查到总分,平均分等-Student achievement management system that enables students to find Billing Division of the purpose of achievement can also be found on total score, with an average grading
- 2023-01-07 08:00:03下载
- 积分:1
-
代码很完整,编译通过,对想学习编写小游戏的朋友很有帮助.代码里有很多注释,很容易读...
代码很完整,编译通过,对想学习编写小游戏的朋友很有帮助.代码里有很多注释,很容易读-Code is complete, the compiler is passed, the preparation of the game want to learn helpful friends. Code, there are a lot of notes, it is easy to read
- 2022-07-10 03:17:07下载
- 积分:1