All pastes #1700499 Raw Edit

question 4

public text v1 · immutable
#1700499 ·published 2009-12-03 18:14 UTC
rendered paste body
#!/bin/bash

if [ $1 -lt $2 ]
then
for ((k=$1;k<=$2;k+=1))
do 
echo $k
done
else
for ((i=$1;i>=$2;i--))
do
echo $i
done
fi