-
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数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
-
LABEL的URL连接,LABEL的URL连接
LABEL的URL连接,LABEL的URL连接-LABEL URL link, the URL link LABEL
- 2023-01-10 22:50:03下载
- 积分:1
-
ROCBOSS微社区-微信论坛程序 v2.1
ROCBOSS微社区也就是微信论坛程序,适合手机端使用,是采用PHP+MySql 架构和MVC结构的轻量级社区程序,使用Bootstrap 的UI,代码开源,功能实用,定制性强,一个初级的PHPer就可以对其进行二次开发。ROCBOSS微社区各文件说明:
config.php -- 网站配置文件
index.php -- 单一入口文件
--/cache 模版缓存、日志文件夹
--/control 控制类文件夹
--/module 模块类文件夹
--/plugins 插件文件夹
--/themes 模版主题文件夹
--/uploads 头像、图片文件夹
- 2022-01-25 16:38:16下载
- 积分:1
-
vb MSHFlexGrid +access数据库实例
vb MSHFlexGrid带数据库版本的MSHFlexGrid用法例子,若你对此数据加控件用法不熟悉,本源码非常适合你。
- 2023-05-18 23:30:04下载
- 积分:1
-
可进行多项式加,减,乘,乘方,积分,求导,等运算
可进行多项式加,减,乘,乘方,积分,求导,等运算-polynomial can be, plus or minus, multiplication, involution, integral and derivative, etc. Operational
- 2023-08-09 10:20:03下载
- 积分:1
-
Java甘特图实例中文版附源码
Java甘特图实例中文版附源码,基于applet的甘特图,在网页上可以调用,可以生成一些项目图表,应用于各种JAVa环境的数据统计中,此版本优化了语言,支持显示中文信息的甘特图。
- 2022-09-13 00:05:04下载
- 积分:1
-
该文档详细介绍了supermap的一些基本知识,让用户能详细了解supermap。...
该文档详细介绍了supermap的一些基本知识,让用户能详细了解supermap。-The document detailed the SuperMap some basic knowledge, so that users can learn more about supermap.
- 2022-02-28 16:15:50下载
- 积分:1
-
解压后为多媒体电子琴源代码,希望大家喜欢!
解压后为多媒体电子琴源代码,希望大家喜欢!-unpacked for multimedia flower source code, hope you like them!
- 2022-01-21 20:06:16下载
- 积分:1
-
时钟设置时钟类程序,设置二次时间并显示输出和学生信息
时钟设置时钟类程序,设置二次时间并显示输出和学生信息-clock set the clock category, the setting is the second time, and output of information and students
- 2022-03-18 09:32:14下载
- 积分:1
-
One on BPSK BER simulation procedures, including the signal generated by adding...
一个关于BPSK误码率仿真的程序,其中包括信号产生,加入高斯白噪声,和误码率计算!-One on BPSK BER simulation procedures, including the signal generated by adding Gaussian white noise, and bit error rate!
- 2022-12-05 12:55:03下载
- 积分:1