nick34992
8/19/2017 - 8:46 PM

Bash: declare, read

Bash: declare, read

#!/bin/bash

declare -i number1
declare -i number2
declare -i total

echo "Please enter a number:"
read number1
echo "And another number:"
read number2
total=$number1+$number2
echo "Aha! They equal" $total
exit 0