#!/bin/bash num=7 fact=1 while [ $num -gt 1 ] do fact=$(( fact*num)) num=$((num-1)) done echo "factorial in $fact"
To embed this project on your website, copy the following code and paste it into your website's HTML: