2024: A Landmark Year for Global Crypto Regulation
A to Z Full Forms and Acronyms

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

Mar 07, 2022 LinuxShellScript, 7088 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
Cookies.

By using this website, you automatically accept that we use cookies. What for?

Understood