#!/bin/bash

a=$1
b=$2

result=$(($a%$b))
echo "$1%$2=$result"

# remainder.sh 17 5
# 17%5=2
# remainder.sh 22 7
# 22%7=1
# remainder.sh 97 9
# 97%9=7