Create Logical operators

Logical Operators/Boolean Operators.
This commit is contained in:
Ankam Ravi Kumar
2018-05-17 22:52:11 +05:30
committed by GitHub
parent 25a7630945
commit b530bb9bf9

21
Logical operators Normal file
View File

@ -0,0 +1,21 @@
#!/bin/bash
#Purpose: Logical Operators/Boolean Operators. Student Marks Validation.
#Version:1.0
#Created Date: Sat May 12 21:21:03 IST 2018
#Modified Date:
#Author: Ankam Ravi Kumar
# START #
echo -e "Enter Your Maths Subject Marks: \c"
read -r m
echo -e "Enter Your Physics Subject Marks: \c"
read -r p
echo -e "Enter Your Chemistry Subject Marks: \c"
read -r c
if test $m -ge 35 -a $p -ge 35 -a $c -ge 35
then
echo "Congratulations, You have passed in all subjects"
else
echo "Sorry You not upto mark in one of the subject"
fi
# END #