Loading, please wait...

A to Z Full Forms and Acronyms

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

Jun 24, 2021 LinuxShellScript, 341 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