Answers for "or in while bash"

2

bash while true

while :; do
  # loop infinitely
done
Posted by: Guest on October-04-2021
0

bash while

#!/bin/bash
counter=$1
factorial=1
while [ $counter -gt 0 ]
do
   factorial=$(( $factorial * $counter ))
   counter=$(( $counter - 1 ))
done
echo "$factorial"
Posted by: Guest on April-19-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language