chore(i8n,learn): processed translations

This commit is contained in:
Crowdin Bot
2021-02-06 04:42:36 +00:00
committed by Mrugesh Mohapatra
parent 15047f2d90
commit e5c44a3ae5
3274 changed files with 172122 additions and 14164 deletions

View File

@ -1,67 +1,68 @@
---
id: 5a23c84252665b21eecc7ec1
title: 迭代的数字平方
title: Iterated digits squaring
challengeType: 5
videoUrl: ''
forumTopicId: 302291
dashedName: iterated-digits-squaring
---
# --description--
如果添加自然数大于零的整数的数字的平方则始终以1或89结尾
If you add the square of the digits of a Natural number (an integer bigger than zero), you always end with either 1 or 89:
```
15 - > 26 - > 40 - > 16 - > 37 - > 58 - > 89
7 - > 49 - > 97 - > 130 - > 10 - > 1
```
<pre>15 -> 26 -> 40 -> 16 -> 37 -> 58 -> 89
7 -> 49 -> 97 -> 130 -> 10 -> 1
</pre>
编写一个函数该函数将数字作为参数并在执行上述过程后返回1或89。
# --instructions--
Write a function that takes a number as a parameter and returns 1 or 89 after performing the mentioned process.
# --hints--
`iteratedSquare`应该是一个函数。
`iteratedSquare` should be a function.
```js
assert(typeof iteratedSquare == 'function');
```
`iteratedSquare(4)`应该返回一个数字。
`iteratedSquare(4)` should return a number.
```js
assert(typeof iteratedSquare(4) == 'number');
```
`iteratedSquare(4)`应该返回`89`
`iteratedSquare(4)` should return `89`.
```js
assert.equal(iteratedSquare(4), 89);
```
`iteratedSquare(7)`应该返回`1`
`iteratedSquare(7)` should return `1`.
```js
assert.equal(iteratedSquare(7), 1);
```
`iteratedSquare(15)`应该返回`89`
`iteratedSquare(15)` should return `89`.
```js
assert.equal(iteratedSquare(15), 89);
```
`iteratedSquare(20)`应该返回`89`
`iteratedSquare(20)` should return `89`.
```js
assert.equal(iteratedSquare(20), 89);
```
`iteratedSquare(70)`应该返回`1`
`iteratedSquare(70)` should return `1`.
```js
assert.equal(iteratedSquare(70), 1);
```
`iteratedSquare(100)`应该返回`1`
`iteratedSquare(100)` should return `1`.
```js
assert.equal(iteratedSquare(100), 1);