Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
150109_RecursividadParImpar
//Title of this code //gcc 4.8.2 #include <stdio.h> short esPar(long p); short esImpar(long p); int main(void) { long d = 12345678912456; if(esPar(d)) { printf("\n\n%ld es PAR\n\n", d); } else { printf("\n\n%ld es IMPAR\n\n", d); } return 0; } short esPar(long p) { if(p == 0) return 1; return esImpar(p - 1); } short esImpar(long p) { if(p == 0) return 0; return esPar(p - 1); }
run
|
edit
|
history
|
help
0
A_141124_arrayIguales
Atomic Openmp
2.1.3 Sum of squares of first hundred natural numbers with different cores
PRACTICE 1
assignment 3 celina
6 ejercicio trabajo semanal 4
MinMaxArray
SAI_1-3.c
Binary to Integer (C)
Estrutura