Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

maximo comun divisor

int mcd(int a, int b){
	if(a == b){
		return a;
	}
	else{
		if(a > b){
			return mcd(a - b, b);
		}
		else{
			return mcd(a, b - a);
		}
	}
}
 
PREVIOUS NEXT
Tagged: #maximo #comun #divisor
ADD COMMENT
Topic
Name
5+4 =