diff --git a/02-add_nums.sh b/02-add_nums.sh index 2fd13cb..e19ad7f 100644 --- a/02-add_nums.sh +++ b/02-add_nums.sh @@ -11,5 +11,16 @@ sum=$(( first+second+third )) echo "The sum is $sum" -# exercise: ask the user for the width and height and present total -# number of pixels +# --- Eyob Kabeto final merged version --- +echo "Enter the width of the screen:" +read width + +echo "Enter the height of the screen:" +read height + +total_pixels=$(( width * height )) +echo "Your screen has $total_pixels pixels total." + +echo "Now let's estimate half that area for a preview window." +half_pixels=$(( total_pixels / 2 )) +echo "Half-size preview uses $half_pixels pixels." \ No newline at end of file diff --git a/branches_graph.png b/branches_graph.png new file mode 100644 index 0000000..c999093 Binary files /dev/null and b/branches_graph.png differ