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);
}
}
}// 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;
}
Also in C:
- arduino define
- how to go to top of file in vim
- bubble sort time complexity
- download file by command line windows
- boolean function c
- create map golang
- gura
- why do you jerk while falling aslee
- c math.h sqrt
- arduino remove()
- mediawiki upload size
- how to make a debug in c
- parcourir char c
- command line arguments c
- pointer arithmetic C
- rakshabandhan 2020
- arduino c string split by delimiter
- double return type in c
- how to use malloc in c
- c calloc
- reap zombie process in c
- multiplication in c
- E: The repository 'http://ppa.launchpad.net/webupd8team/atom/ubuntu focal Release' does not have a Release file. 404 error remove
- oneplus nord