diff --git a/02-add_nums.sh b/02-add_nums.sh index 2fd13cb..00c86da 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 +# exercise: ask the user for the width and height and present total number of pixels + +echo "Enter width" +read width + +echo "Enter height" +read height + +pixels=$((width * height)) +echo "Total pixels: $pixels" + +area=$((width * height)) +echo "Area is: $area" \ No newline at end of file diff --git a/Branch_graph.png b/Branch_graph.png new file mode 100644 index 0000000..68fbcf7 Binary files /dev/null and b/Branch_graph.png differ diff --git a/Danny_Zhang/my_script.sh b/Danny_Zhang/my_script.sh new file mode 100755 index 0000000..be7af24 --- /dev/null +++ b/Danny_Zhang/my_script.sh @@ -0,0 +1,2 @@ +#!/bin/bash +echo "Welcome, my name is Danny Zhang" diff --git a/after_merge_graph.png b/after_merge_graph.png new file mode 100644 index 0000000..69f46b8 Binary files /dev/null and b/after_merge_graph.png differ