Skip to content

Commit 7807e7a

Browse files
authored
One line per sentence and don't use the word "function"
1 parent 46670c7 commit 7807e7a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

exercises/square-root/description.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ We are launching a deep space exploration rocket and we need a way to make sure
44

55
The first step in our coordinate calculation involves taking a number as input and finding another number which multiplied by itself will equal our input number, or in other words, finding the square root of our input number.
66

7-
Because the journey will be very long, we had to make our rocket’s onboard computer very power efficient so it wouldn’t drain the batteries. Unfortunately that means that we can’t rely on fancy math libraries and functions, as they would take more power. Instead we want to calculate or approximate the square root directly.
7+
Because the journey will be very long, we had to make our rocket’s onboard computer very power efficient so it wouldn’t drain the batteries.
8+
Unfortunately that means that we can’t rely on fancy math libraries and functions, as they would take more power.
9+
Instead we want to calculate or approximate the square root directly.
810

9-
Your task is to implement a function that calculates or approximates the square root of a given number.
11+
Your task is to implement a calculation of the square root of a given number.
1012

1113
- Try to avoid using the pre-existing math libraries of your language.
1214
- As input you’ll be given a positive whole number, i.e. 1, 2, 3, 4…
13-
- The function also only needs to output positive whole numbers.
15+
- You also only need to output a positive whole number.
1416

1517
Examples of some approaches you could consider are:
1618

0 commit comments

Comments
 (0)