Skip to content

pankajm18/hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

hello-world

A simple repo

Extended Euclid's Algorithm

int gcdExtended(int a, int b, int *x, int *y) {

if (a == 0) 
{ 
    *x = 0; 
    *y = 1; 
    return b; 
}   
int x1, y1;  
int gcd = gcdExtended(b%a, a, &x1, &y1);    
*x = y1 - (b/a) * x1; 
*y = x1;  
return gcd; 

}

About

A simple repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages