end of day 5 week 1

This commit is contained in:
2026-01-22 21:36:02 +01:00
parent 82b79336ea
commit 3e23329086
8 changed files with 529 additions and 0 deletions

14
week 1/day 5/exo1.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
read -p "please enter a number : " number
if [[ -z $number ]]; then
echo "you must enter a number"
exit
fi
if (( $number % 2 == 0 )); then
echo "Even"
else
echo "Odd"
fi