Search
 
SCRIPT & CODE EXAMPLE
 

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);
		}
	}
}
Comment

maximo comun divisor

// calcula el maximo comun divisor
	int mcd(int a, int b){
    int max;

    if(b == 0){
      max = a;
    }else{
      max = mcd(b, a % b);
    }

    return max;
	}
Comment

PREVIOUS NEXT
Code Example
C :: pid of a process in c 
C :: macos prevent disk mounting 
C :: FCFS algorithm in c to find average turnaround time and waiting time 
C :: how to sort an int array in c 
C :: how to transform a char to ascii code in c 
C :: pasar a binario recursivo 
C :: powershell search big files 
C :: square in c 
C :: boolean input in c 
C :: how to arrange a 2d array based on string length in c 
C :: strstr 
C :: print 0 1 2 3 4 in c while loop 
C :: c malloc array 
C :: compile in c 
C :: pointer c 
C :: exponentials in c 
C :: arduino dont working dc motor 
C :: XAudio2 C 
C :: ouverture du fichier c 
C :: convert c code to python online free 
C :: divide a linked list into three parts based on their position mod 3. 
C :: pointer operator 
C :: how to limit tiktok on mikrotik 
C :: condition ternaire in c 
C :: pdo crud 
C :: garbage collection and dangling reference 
C :: online code runner .c 
C :: captive portal esp8266 
C :: Defining a macro in a header file 
C :: how to get a string input in c 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =