Loading, please wait...

A to Z Full Forms and Acronyms

How to multiply two numbers in Linux Shell Script | Linux Shell Script

Mar 07, 2022 LinuxShellScript, 6801 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"

A to Z Full Forms and Acronyms