Skip to content

Commit b530bb9

Browse files
author
Ankam Ravi Kumar
authored
Create Logical operators
Logical Operators/Boolean Operators.
1 parent 25a7630 commit b530bb9

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Logical operators

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
#Purpose: Logical Operators/Boolean Operators. Student Marks Validation.
3+
#Version:1.0
4+
#Created Date: Sat May 12 21:21:03 IST 2018
5+
#Modified Date:
6+
#Author: Ankam Ravi Kumar
7+
# START #
8+
echo -e "Enter Your Maths Subject Marks: \c"
9+
read -r m
10+
echo -e "Enter Your Physics Subject Marks: \c"
11+
read -r p
12+
echo -e "Enter Your Chemistry Subject Marks: \c"
13+
read -r c
14+
15+
if test $m -ge 35 -a $p -ge 35 -a $c -ge 35
16+
then
17+
echo "Congratulations, You have passed in all subjects"
18+
else
19+
echo "Sorry You not upto mark in one of the subject"
20+
fi
21+
# END #

0 commit comments

Comments
 (0)