![]() |
| ||
| Shell program to find GCD Please help me to write a shell script to find the GCD (Greatest common Divisor) of 3 numbers. Thanks in advance. |
| ||
| Re: Shell program to find GCD Why are you trying to do maths in the shell (which it really isn't set up to do). |
| ||
| Re: Shell program to find GCD Project work |
| ||
| Re: Shell program to find GCD I got a program to find the GCD of 2 numbers. But i need the program to find the GCD of three numbers. Program to find the GCD of 2 numbers is as follows Quote:
So please write a program to find the GCD of 3 numbers. |
| ||
| Re: Shell program to find GCD 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. |
| ||
| Re: Shell program to find GCD I tried but I am unable to write the program. So please write the whole program for me. Please. |
| ||
| Re: Shell program to find GCD 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? |
| All times are GMT -4. The time now is 2:51 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC