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: 15 additions & 0 deletions 05-grade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,18 @@ 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
echo "Hello there im from a different universe"
echo "what is the temperature outside"
echo "give a numeric answer"
read temp
if [ "$temp" -lt 40 ]; then
echo "It's cold"
elif [ "$temp" -lt 60 ]; then
echo "It's chilly"
elif [ "$temp" -lt 70 ]; then
echo "It's great"

else
echo "It's Scorching hot"
fi

Binary file added AfterMerge.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 ScreenshotGitBash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.