diff --git a/bashExercise/2.sh b/bashExercise/2.sh new file mode 100644 index 0000000..6ad460a --- /dev/null +++ b/bashExercise/2.sh @@ -0,0 +1,7 @@ + +echo "Enter the first number: " +read num1 +echo "Enter the second number: " +read num2 +result=$(echo "$num1 + $num2" | bc) +echo "The sum of the two numbers is: $result" \ No newline at end of file