15 lines
281 B
Bash
Executable File
15 lines
281 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "calculashion gcd and lcm"
|
|
|
|
echo "pls write first agr"
|
|
read num1
|
|
|
|
echo "pls write second agr"
|
|
read num2
|
|
gcd=$(bash ./script_GCD.sh $num1 $num2)
|
|
LCM=$(bash ./script_LCM.sh $num1 $num2)
|
|
|
|
echo "GCD for $num1 and $num2 is $gcd"
|
|
echo "LCM for $num1 and $num2 is $LCM"
|