chore(i18n,learn): processed translations (#45123)

This commit is contained in:
camperbot
2022-02-16 22:48:09 +05:30
committed by GitHub
parent 51c8b065f5
commit c934590548
48 changed files with 515 additions and 492 deletions

View File

@ -1,6 +1,6 @@
---
id: 5a23c84252665b21eecc7e82
title: Greatest common divisor
title: Massimo comun divisore
challengeType: 5
forumTopicId: 302277
dashedName: greatest-common-divisor
@ -8,53 +8,53 @@ dashedName: greatest-common-divisor
# --description--
Write a function that returns the greatest common divisor of two integers.
Scrivi una funzione che restituire il massimo comun divisore di due numeri interi.
# --hints--
`gcd` should be a function.
`gcd` dovrebbe essere una funzione.
```js
assert(typeof gcd == 'function');
```
`gcd(24,36)` should return a number.
`gcd(24,36)` dovrebbe restituire un numero.
```js
assert(typeof gcd(24, 36) == 'number');
```
`gcd(24,36)` should return `12`.
`gcd(24,36)` dovrebbe restituire `12`.
```js
assert.equal(gcd(24, 36), 12);
```
`gcd(30,48)` should return `6`.
`gcd(30,48)` dovrebbe restituire `6`.
```js
assert.equal(gcd(30, 48), 6);
```
`gcd(10,15)` should return `5`.
`gcd(10,15)` dovrebbe restituire `5`.
```js
assert.equal(gcd(10, 15), 5);
```
`gcd(100,25)` should return `25`.
`gcd(100,25)` dovrebbe restituire `25`.
```js
assert.equal(gcd(100, 25), 25);
```
`gcd(13,250)` should return `1`.
`gcd(13,250)` dovrebbe restituire `1`.
```js
assert.equal(gcd(13, 250), 1);
```
`gcd(1300,250)` should return `50`.
`gcd(1300,250)` dovrebbe restituire `50`.
```js
assert.equal(gcd(1300, 250), 50);