Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void is_even(int n){
- if(n % 2 == 0)
- cout << "False" <<endl;
- else
- cout << "True" << endl;
- }
- int main() {
- int num;
- cin >> num;
- is_even(num);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement