Ad
Code
Diff
  • #!/bin/bash
    for (( i=1; i <= $3; i++)); do
      (( $i % ($1 * $2) )) || echo $i
    done
    • #!/bin/bash
    • for i in $(eval echo {1..$3});
    • do
    • if [ $(( $i % ( $1*$2) )) -eq 0 ]
    • then
    • echo $i
    • fi
    • for (( i=1; i <= $3; i++)); do
    • (( $i % ($1 * $2) )) || echo $i
    • done