Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions 02-add_nums.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Binary file added Branch_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions Danny_Zhang/my_script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
echo "Welcome, my name is Danny Zhang"
Binary file added after_merge_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.