#!/bin/bash

while :
do
a1=0
c=1
c1=1
read a b
if [ $a -eq 0 ] && [$b -eq 0 ];
	then
		break
	fi
while [ "$a1" -le $b ] 
do 
c1=`echo "($c1 * $a)" |bc`
a1=`echo "$a1+1"|bc`
done
echo "$c1/$a" |bc|sed -e ':a;N;$!ba;s/\n//g'|sed -e 's/\\//g'

done

