Run the for loop over a range from the first argument ($1) to the second ($2):
Loops and sequences
Simple loop output
Report a typo
Sample Input 1:
1 5Sample Output 1:
Number: 1
Number: 2
Number: 3
Number: 4
Number: 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.