Skip to content

Commit 4f3d80a

Browse files
authored
pythagorean-triplets: Fix maths notation in instructions (#1808)
`**` is not commonly used for exponentiation. I went with `²` but `^` would also be a more common choice than `**`. In v3, this should probably be updated to use Mathjax/KaTeX notation instead. (see exercism/website#476)
1 parent 2d0e61d commit 4f3d80a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/pythagorean-triplet/description.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A Pythagorean triplet is a set of three natural numbers, {a, b, c}, for
44
which,
55

66
```text
7-
a**2 + b**2 = c**2
7+
a² + b² = c²
88
```
99

1010
and such that,
@@ -16,7 +16,7 @@ a < b < c
1616
For example,
1717

1818
```text
19-
3**2 + 4**2 = 9 + 16 = 25 = 5**2.
19+
3² + 4² = 9 + 16 = 25 = 5².
2020
```
2121

2222
Given an input integer N, find all Pythagorean triplets for which `a + b + c = N`.

0 commit comments

Comments
 (0)