Run the seq command with the first argument ($1) as the start of a range and a second argument ($2) as its end.
Loops and sequences
Seq command
Report a typo
Sample Input 1:
1 5Sample Output 1:
1
2
3
4
5Write a program in Shell
#!/usr/bin/env bash
function solve() {
# put your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.