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
Binary file added .DS_Store
Binary file not shown.
16 changes: 16 additions & 0 deletions 05-grade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,19 @@ fi
# that prints "it's cold" if the temperature is < 40
# it's chilly if < 60, it's okay if < 70 and, it's hot for
# everything else



temperature=$(weather -t | awk '/Temperature/{print $2}')


if ((temperature < 40)); then
echo "It's cold"
elif ((temperature < 60)); then
echo "It's chilly"
elif ((temperature < 70)); then
echo "It's okay"
else
echo "It's hot"
fi

13 changes: 13 additions & 0 deletions Muhammad Marenah/Muhammad Marenah.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Print my name
echo "Muhammad"

# Print a nice message
echo "Good Day"

# Use a while loop to count
counter=1
while [ $counter -le 5 ]
do
echo "Count: $counter"
((counter++))
done
Binary file added Screenshot of 2 branches.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 of branches 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.