Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loop instructions have incorrect example #13

Closed
snackattas opened this issue Jul 3, 2016 · 1 comment
Closed

Loop instructions have incorrect example #13

snackattas opened this issue Jul 3, 2016 · 1 comment
Labels

Comments

@snackattas
Copy link

snackattas commented Jul 3, 2016

Here are the instructions for loops. They are incorrect because the exercise is to write even numbers, but the example is outputting odd numbers. In addition, it says to write the numbers in range between the first and second parameters. But the example includes 17, which is not between the first and second parameters. It's confusing if the exercise is to write an inclusive or exclusive list

Create a file named loops.bash.

The first two positional parameters which will be passed into your script are the limits. 
You should write all even numbers in range between the first and second positional parameters.

Example:

./loops.bash 10 17

 Output:

 11
 13
 15
 17
@denysdovhan
Copy link
Owner

This problem was fixed in version v1.1.1. Please update your installation using:

npm i -g learnyoubash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants