diff --git a/02-add_nums.sh b/02-add_nums.sh index 2fd13cb..d59c716 100644 --- a/02-add_nums.sh +++ b/02-add_nums.sh @@ -13,3 +13,13 @@ echo "The sum is $sum" # exercise: ask the user for the width and height and present total # number of pixels + +echo "Now let's calculate area differently!" +echo "Width please:" +read width +echo "Height please:" +read height + +cm_area=$(( width*height/100 )) + +echo "Area in cm^2: $cm_area" \ No newline at end of file diff --git a/after-merging.png b/after-merging.png new file mode 100644 index 0000000..4c9a6dc Binary files /dev/null and b/after-merging.png differ diff --git a/two-branches.png b/two-branches.png new file mode 100644 index 0000000..401752d Binary files /dev/null and b/two-branches.png differ