Bash超级会 - 7.函数 Functions
2021-10-17 本文已影响0人
etfolin
shell in the SHELL
#!/bin/bash
function Sum()
{
echo -n "Enter First Number: "
read a
echo -n "Enter Second Number: "
read b
echo "Sum is: $(( a+b ))"
}
Sum
shell in the SHELL
#!/bin/bash
function Sum()
{
echo -n "Enter First Number: "
read a
echo -n "Enter Second Number: "
read b
echo "Sum is: $(( a+b ))"
}
Sum