Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Even Odd using Functions
#include <iostream> using namespace std; void odd(int); void even(int); int main () { int num; cout<<"Enter any number"; cin>>num; even(num); return 0; } void even(int a ) { if ( a%2==0) cout<<"\nEven number"; else odd(a); } void odd(int) { cout<<"\nOdd number"; }
run
|
edit
|
history
|
help
0
CPP - Arrays - Ex.2 - Solution
graph representation Adjacency List
Stack with min element
PreDir
Web Browser History - DLL
congruence modulo equations (together with a simple BigInteger class)
pointer to template function
Shorting in one line using class members std and boost bind
Test constructors and operators
ThreeVariableRegression