Programming knowledge
Easy programming for beginners
Pages
Home
PHP Tutorial
Android tutorial
Kotlin Tutorial
Thursday, 3 November 2016
( Shell Scripting ) check a number to be Positive or negative
#check a number to be Positive or negative
echo "enter the number";
read a
if [ $a -lt 0 ]
then
echo "Negative";
else
echo "Positive";
fi
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Updates
Programming Knowladge
( Shell Scripting ) check a number to be Positive or negative
9 years ago
No comments:
Post a Comment