Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
365 B
0
Indexable
Never
#!/bin/bash
sum=0
echo "Enter Numbers"
  echo "Enter the first number"
  read num1           #get number
  echo "Enter the second number"
  read num2           #get number
  echo "Enter the third number"
  read num3          #get number
  sum=$((num1 + num2 + num3)) #sum+=num
  if [ sum < 50 ]
then
  echo "Good Try!!!"
fi
  echo "Celebrate the score!!!"
echo $sum