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
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment