Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-1-multiples-of-3-and-5.md
Oliver Eyton-Williams dec409a4bd fix: s/localeTitle/title/g
2020-10-06 23:10:08 +05:30

65 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f36e1000cf542c50fe80
challengeType: 5
videoUrl: ''
title: 问题13和5的倍数
---
## Description
<section id="description">
如果我们列出所有10以下是3或5的倍数的自然数我们会得到356和9。这些倍数的总和是23。
求出所有在<code>number</code>以下的3或5的倍数的总和。
</section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>multiplesOf3and5(1000)</code>应该返回233168。
testString: assert.strictEqual(multiplesOf3and5(1000), 233168);
- text: <code>multiplesOf3and5(49)</code>应该返回543。
testString: assert.strictEqual(multiplesOf3and5(49), 543);
- text: <code>multiplesOf3and5(19564)</code>应该返回89301183。
testString: assert.strictEqual(multiplesOf3and5(19564), 89301183);
- text: 您的函数未使用我们的测试值返回正确的结果。
testString: assert.strictEqual(multiplesOf3and5(8456), 16687353);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function multiplesOf3and5(number) {
// Good luck!
return true;
}
multiplesOf3and5(1000);
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>