Skip to content

Instantly share code, notes, and snippets.

@empeje
Last active June 4, 2019 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save empeje/1a119094a8fc117e8f65464ece8cface to your computer and use it in GitHub Desktop.
Save empeje/1a119094a8fc117e8f65464ece8cface to your computer and use it in GitHub Desktop.
Some HackerRank Linux Shell Challenges
#!/usr/bin/env bash
N=99
for number in $(seq 1 1 $N); do
odd=$(($number%2))
if [ ! $odd -eq 0 ]; then
echo $number
fi
done
#!/usr/bin/env bash
read -p "Enter Your Name: " username
echo "Welcome $username"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment