We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c067075 + 17c8fe8 commit af8953eCopy full SHA for af8953e
02-Conditionals/README.md
@@ -0,0 +1,6 @@
1
+# Conditionals
2
+
3
+This is a repo where you can create and practice conditionals in various languages.
4
5
+The following language code has been added to far:
6
+1. bash
02-Conditionals/if-else.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+echo "Welcome to conditionals"
+todayDate=$(date +%d)
+today=$(date +'%d/%m/%Y')
7
+echo "Today is $today."
8
+if [ $todayDate -ge 15 ]
9
+then
10
+ echo "Congrats half the month is over !"
11
+else
12
+ echo "Come on work hard. Its not even the half of the month"
13
+fi
0 commit comments