multiplicacion recursiva
/*Escribir una función recursiva que calcule x*y mediante sumas sucesivas,
siendo x e y dos números enteros. */
int multipicacion(int a, int b){
int res = a;
if(b == 0){
res = 0;
}else{
res = res + multipicacion(a, b-1);
}
printf("multiplicacion: %d\n", res);
return res;
}
Also in C:
- c flip variable
- cannot reach esp8266 via udp while he is running with a static ip
- wireshark tls client hello filter
- inurl:fiu.edu math faculty
- how to make services in linux
- c concatenate strings
- c right bit shift
- stack
- switch case c
- how to make infinite loop in c
- c allocate array
- how to run a update comand in linux
- main function in c
- fibonacci sequence single recursive call
- ecole de chien d'aveugles paris
- default password raspberry pi
- Declare macro
- bash: apt-add-repository: command not found
- how to print something out to the console c
- android is not recognized
- sleep function in c
- check if string starts with c
- ruby find object in array by attribute
- rakshabandhan 2020