es par
// devuelve si el numero n es par, solo podeis usar sumas y restas.
bool esPar(int n){
bool par = false;
if(n - 2 == 0){
par = true;
}else if(n - 2 <= 0){
par = false;
}else{
par = esPar(n-2);
}
return par;
}
Also in C:
- code: 'EADDRINUSE', [0] errno: 'EADDRINUSE', [0] syscall: 'listen', [0] address: '::', [0] port: 5000
- how to modulo decimal c
- recursion function bangla
- donut c code
- pthread_create
- ModuleNotFoundError: No module named 'cv2'
- cant update windows
- write array of char to file in c
- 4k stogram chave
- add border to image android
- sinus c math.h
- powershell list big files
- C bitwise integer absolute value
- deallocate memory in c
- pygame detect click
- curl ftp upload file to directory
- resto de division recursiva
- gura
- find the largest number in else if javascript
- sidebar materializecss
- how to check where the last char is in a string c
- even odd numer c
- macos prevent disk mounting
- plt legend top right outside