Hot cup with JAVA Technologies!!
Java, Struts, Spring, Hibernate, Unix,IT, Software, Jobs, Interview, Aptitude, Learning, Algorithms
Sunday, October 31, 2010
Greatest Common Divisor
public int gcd (int p, int q){
if (q=-=0){
return p;
}
return gcd (q, p%q);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment