-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Greatest Common Divisor Not working #2
Comments
I would like work on this issue |
Shall I work on this? |
Fixed gcd#13 |
i would like to work on it |
#import math
num1 = int(input("Enter first number: "))
num2 = int(input("Enter second number: "))
# greatest common divisor
result = math.gcd(num1,num2)
print("The GCD of", num1, "and", num2, "is", result)
This is the answer.. check it
…On Wed, Feb 15, 2023, 2:48 PM jeevitha swaero ***@***.***> wrote:
i would like to work on it
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5Y7ADPIWIU5FQUNKT7EK23WXSNM3ANCNFSM6AAAAAAUGCELH4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
gcd great common divisor by doing with 10 we get finally 1 as out put |
ok |
a) I have committed only those files that are required. Detailed description No function or code is there to calculate gcd , file was just adding values and printing, without making any calculations. Test plan (required) We can use any set of 2 positive numbers and it produces the right result. Closing issues closes #2 |
i would like to work on this |
Yes. Thank you
…On Sun, 19 Mar, 2023, 4:14 pm Ajaychettamaina2004, ***@***.***> wrote:
i would like to work on this
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A54TFK4BUS3UX63EAWA4JJTW43PQ3ANCNFSM6AAAAAAUGCELH4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Describe the bug
When I use the
gcd.py
to find the greatest common divisor of two numbers, it is not giving the correct output. The output seems to be addition instead of finding gcd.To Reproduce
Steps to reproduce the behavior:
python gcd.py
Expected behavior
The answer should be 1.
Screenshots
![image](https://user-images.githubusercontent.com/18501167/214524574-aa98bad6-5d55-451d-88b1-f42784c75437.png)
The text was updated successfully, but these errors were encountered: