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
Multiple If statements v.09
CO Assignment 1 Question 2
InterviewDesk_Embedded
quicksort guía 4
If Statement/ Decrement practice
address extraction
223780
CO Assignment 1 Question 1
150109_RecursividadFactorial
C_141112_Perfectos