0

# Shell script for multiplying two numbers?

Updated: 9/18/2023

Wiki User

12y ago

#!/bin/Bash

echo "Enter the two numbers to be Multiplied:"

Wiki User

12y ago

Earn +20 pts
Q: Shell script for multiplying two numbers?
Submit
Still have questions?
Related questions

### Write a shell script for addition of two numbers using expr?

a=10; b=20; c=`expr \$a + \$b`; printf "\$c";

### What is product of two numbers?

The product of two numbers is the answer to multiplying the two numbers together.

### Product of two numbers?

Is the result of multiplying two numbers together.

the PRODUCT :)

### When multiplying two numbers the answer is what?

you get a product.

### In Shell script. How do I ask for and accept two numbers and then calculate the sum of the supplied numbers and display the sum.?

It depends on the script language you are using. In the Korn shell, you can say: echo -n "Enter the first number: " read first echo -n "Enter the second number: " read second let third=\$first+\$second echo The answer is \$third

The product

### What two numbers get 63 by multiplying?

the two numbers to equal to 63 is 9 and 7.

### How is multiplying a decimal by a whole number the same as multiplying 2 whole numbers?

It is not. When multiplying two whole numbers you need not be concerned about placing the decimal point in the answer.

### Shell script to find LCM of the given two numbers?

Shell program to find LCM and hcf of two no.s tput clear echo "Enter first no" read a echo "Enter 2nd no" read b p= 'expr \$a \* \$b' while [\$b -ne 0] do r= 'expr \$a % \$b' a=\$b b=\$r done LCM = 'expr \$p / \$a' echo "LCM = \$LCM" echo "Hcf = \$a"

### Which numbers when multiplied by 5 gives an odd numbers?

Every odd number. Multiplying two even numbers gives an even number. Multiplying an odd and an even number gives an even number. Multiplying two odd numbers gives an odd number.

the product