diff --git a/02-add_nums.sh b/02-add_nums.sh index 2fd13cb..9e34d4b 100644 --- a/02-add_nums.sh +++ b/02-add_nums.sh @@ -1,5 +1,3 @@ -#!/bin/sh - echo "Enter your first number" read first echo "Enter your second number" @@ -13,3 +11,12 @@ echo "The sum is $sum" # exercise: ask the user for the width and height and present total # number of pixels + +read -p "Enter width: " width +read -p "Enter height: " height + +# Calculate total pixels +total=$((width + height)) + +# Show the result +echo "Total number of pixels: $total" diff --git a/2-Branches-Screenshot.png b/2-Branches-Screenshot.png new file mode 100644 index 0000000..4766984 Binary files /dev/null and b/2-Branches-Screenshot.png differ diff --git a/After merge.png b/After merge.png new file mode 100644 index 0000000..2586562 Binary files /dev/null and b/After merge.png differ