Created
February 25, 2015 07:13
-
-
Save QuantumHawk/091332db9de8ee617b60 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Evklid { | |
int x1; | |
int y1; | |
int Evklid (int a, int b, int x, int y) { | |
if (a == 0) { | |
x = 0; y = 1; | |
return b; | |
} | |
int d = Evklid (b%a, a, x1, y1); | |
x = y1 - (b / a) * x1; | |
y = x1; | |
return d; | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
public class Evklid {
int x1;
int y1;
int x;
int y;
int Evklid (int a, int b) {
}}