61 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
---
 | 
						|
id: 5900f3931000cf542c50fea6
 | 
						|
challengeType: 5
 | 
						|
title: 'Problem 39: Integer right triangles'
 | 
						|
videoUrl: ''
 | 
						|
localeTitle: ''
 | 
						|
---
 | 
						|
 | 
						|
## Description
 | 
						|
undefined
 | 
						|
 | 
						|
## Instructions
 | 
						|
undefined
 | 
						|
 | 
						|
## Tests
 | 
						|
<section id='tests'>
 | 
						|
 | 
						|
```yml
 | 
						|
tests:
 | 
						|
  - text: ''
 | 
						|
    testString: 'assert(intRightTriangles(500) == 420, "<code>intRightTriangles(500)</code> should return 420.");'
 | 
						|
  - text: ''
 | 
						|
    testString: 'assert(intRightTriangles(800) == 420, "<code>intRightTriangles(800)</code> should return 420.");'
 | 
						|
  - text: ''
 | 
						|
    testString: 'assert(intRightTriangles(900) == 840, "<code>intRightTriangles(900)</code> should return 840.");'
 | 
						|
  - text: ''
 | 
						|
    testString: 'assert(intRightTriangles(1000) == 840, "<code>intRightTriangles(1000)</code> should return 840.");'
 | 
						|
 | 
						|
```
 | 
						|
 | 
						|
</section>
 | 
						|
 | 
						|
## Challenge Seed
 | 
						|
<section id='challengeSeed'>
 | 
						|
 | 
						|
<div id='js-seed'>
 | 
						|
 | 
						|
```js
 | 
						|
function intRightTriangles(n) {
 | 
						|
  // Good luck!
 | 
						|
  return n;
 | 
						|
}
 | 
						|
 | 
						|
intRightTriangles(1000);
 | 
						|
 | 
						|
```
 | 
						|
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
</section>
 | 
						|
 | 
						|
## Solution
 | 
						|
<section id='solution'>
 | 
						|
 | 
						|
```js
 | 
						|
// solution required
 | 
						|
```
 | 
						|
</section>
 |