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
19 changes: 18 additions & 1 deletion 02-add_nums.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,27 @@ echo "Enter your second number"
read second
echo "Enter your third number"
read third
echo "Enter your fourth number"
read fourth

sum=$(( first+second+third ))

sum=$(( first+second+third+ fourth ))

echo "The sum is $sum"

# 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

total=$(( width*height ))

# print statement

echo " Width and Height multiplied together results in a total pixel amount of $total"
echo "This message is from the main branch"


echo "This message is from the parallel_universe branch"
Binary file added Screenshot 2025-10-23 154015.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshot 2025-10-23 191015.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.