-
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数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
-
使用VB,在MAPX中利用定时器方法闪烁图元
使用VB,在MAPX中利用定时器方法闪烁图元-The use of VB, the use of timers in MAPX flashing graphic element Methods
- 2022-04-09 09:55:00下载
- 积分:1
-
塔防类游戏代码类似王国保卫战
应用背景塔防类游戏,总共三个关卡,每个关卡三个批次。怪物有两条移动路径,随机选择一条路径移动,怪物有分种类,不同类型怪物属性不同。炮塔有两种,一种是发子弹,一种是射箭。可以升级,出售。游戏主要类有:怪物管理器,英雄管理器,子弹管理器,移动控制器等。代码量大概3000左右。关键技术主要是各种配置文件的读取与解析,包括怪物类型文件,路线文件,炮塔位置文件,xml、json文件等。其次是整个游戏逻辑的理解。
- 2023-02-25 18:20:03下载
- 积分:1
-
Some knowledge of computer systems commonly used documents, such as how to compl...
一些电脑系统常用知识如怎样彻底删除文件,dos下系统备份等-Some knowledge of computer systems commonly used documents, such as how to completely delete, dos, such as under the system backup
- 2022-07-02 19:34:34下载
- 积分:1
-
这是利用VB开发的图书馆管理系统,有前台管理,后台管理,图书检索,用户登录注册...
这是利用VB开发的图书馆管理系统,有前台管理,后台管理,图书检索,用户登录注册-This is a system of library management,it has front management、admin management、book searching、administration admission、administration registering...
- 2022-08-11 00:21:58下载
- 积分:1
-
一个用简单的游戏代码,可以下到本机修改下。让它更完美。...
一个用简单的游戏代码,可以下到本机修改下。让它更完美。-A game with a simple code, you can modify under the circumstances of this machine. Make it more perfect.
- 2022-11-09 22:40:03下载
- 积分:1
-
emu2.05 applications, dos under the application software, can be a simple proced...
emu2.05应用程序,dos下的应用软件,可以进行简单的汇编程序编写。-emu2.05 applications, dos under the application software, can be a simple procedure to prepare the compilation.
- 2023-05-08 03:05:04下载
- 积分:1
-
AVL tree . AVL tree is a n algrothim that can be used to study the b tech subjec...
AVL tree . AVL tree is a n algrothim that can be used to study the b tech subject AAD.
- 2022-01-26 04:33:03下载
- 积分:1
-
right drive : Sesame, open sesame not close your hand on the button drive
对光驱说: 芝麻开门,芝麻关门 不用你用手按光驱按钮了-right drive : Sesame, open sesame not close your hand on the button drive
- 2022-04-15 02:21:47下载
- 积分:1
-
一次作业练习,目的是学会运用类,还有fiostream,从.txt文件中读出数据读到内存中,然后经过一系列处理将数据显示出来。...
一次作业练习,目的是学会运用类,还有fiostream,从.txt文件中读出数据读到内存中,然后经过一系列处理将数据显示出来。-a workbook, the purpose is to learn how to use category, fiostream. from. txt document read sensed data memory, and then after a series of data processing will be displayed.
- 2022-02-03 07:54:14下载
- 积分:1