Files
laba1/lab

18 lines
362 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
echo "Введите первое число:"
read num1
echo "Введите второе число:"
read num2
echo "<<<<<<<<<<<|>>>>>>>>>>>"
gcd_result=$(./script_GCD.sh $num1 $num2)
echo "НОД($num1, $num2) = $gcd_result"
lcm_result=$(./script_LCM.sh $num1 $num2)
echo "НОК($num1, $num2) = $lcm_result"
echo "<<<<<<<<<<<|>>>>>>>>>>>"