How to multiply two numbers in Linux Shell Script | Linux Shell Script
Jun 24, 2021
LinuxShellScript,
453 Views
How to multiply two numbers in Linux Shell Script | Linux Shell Script
How to multiply two numbers in Linux Shell Script | Linux Shell Script
#!/bin/bash
echo "Enter num1: "
read num1
echo "Enter num2: "
read num2
multiply=`expr $num1 \* $num2`
echo "Multiplication is: $multiply"