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 n = 1234567890123454; if(esPar(n)) printf("%ld es PAR\n\n", n); else printf("%ld es IMPAR\n\n", n); 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
CALCULADORA
Random test
Collatz(3k+1)
array practice
AC_setting_example
Lab 11 v1.0
string.c
Test 2
Program to input form command line and print it
Assignment 4 v3