Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
|
Privacy
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
Please
log in
to post a comment.
max_size()_30-Seconds-of-C++
Generating π from 1,000 random numbers
Proyecto1
Equilateral triangle
integer division
t>0
NWD
Stock buy/sell
CPP - Arrays - Ex.4
pattern
Please log in to post a comment.