Write a script to find if a number is positive or negative or zero. Hint (num=0 ---zero) (Num<0 --- negative) ( num >0 --- postive)
1
Expert's answer
2021-10-24T18:32:23-0400
#!/bin/bash
echo "Input number";
read number;
if (( number > 0)); then
echo "Positive";
elif (( number < 0)); then
echo "Negative";
else
echo "Zero";
fi
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment