You are viewing a single comment's thread. Return to all comments →
My code is executing quiet well on the terminal not on this site.
sum=0 read x read y
if [ "Misplaced &y" -ge "-100" ] && [ "Misplaced &y" -le "100" ] then while [ "ch in 1)sum=expry echo "Sum ="$sum;; 2)sum=expry echo "Sub = "$sum;; 3)sum=expry echo "Mul = "$sum;; 4)sum=expry echo "Div = "$sum;; *)echo "Invalid choice";; esac done fi
expr
y
Seems like cookies are disabled on this browser, please enable them to open this website
The World of Numbers
You are viewing a single comment's thread. Return to all comments →
My code is executing quiet well on the terminal not on this site.
!/bin/bash
sum=0 read x read y
echo "enter x and y value"
if [ "y" -ge "-100" ] && [ "y" -le "100" ] then while [ "ch in 1)sum=
expr
y
echo "Sum ="$sum;; 2)sum=expr
y
echo "Sub = "$sum;; 3)sum=expr
y
echo "Mul = "$sum;; 4)sum=expr
y
echo "Div = "$sum;; *)echo "Invalid choice";; esac done fi