Why are you trying to do maths in the shell (which it really isn't set up to do).
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
Isn't that just gcd(a,gcd(b,c))
> So please write a program to find the GCD of 3 numbers.
No, we suggest, you do it.
My suggestion is you look to see if your shell supports functions, which you can call in the manner I've described.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
So did you do ANY research on how to write a function in shell?
Did you try a few examples to see how it might work for you?
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953