-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Extended Euclidean Algorithm in PHP #2988
Extended Euclidean Algorithm in PHP #2988
Conversation
You have to complete the checklist before making pull request. |
} | ||
|
||
// Driver Code | ||
$x = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
take input dynamically
echo "\nGCD of ", $a, " and ", $b, " is ", gcd($a, $b, $x, $y); | ||
|
||
/* | ||
Input: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines should be left indent
$y = 0; | ||
$a = 20; | ||
$b = 5; | ||
echo "\nGCD of ", $a, " and ", $b, " is ", gcd($a, $b, $x, $y); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also print x
and y
@@ -0,0 +1,35 @@ | |||
<?php | |||
//Function to find GCD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a empty line after <?php
@raghav-dalmia @jainaman224 @asha15 |
Fixes #2906
Checklist:
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
Changes proposed in this pull request:
Languages Used:
Files Added:
Thanks!