Website Summary Files Commits Branches @commit @diff @stats
path: root / pract_SI / Pract. 04 / Solutions / task2 - example1.cpp
blob: 25b4030ff85158218134a261ce69b11f8971eb81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>
using namespace std;

bool isEven(int number)
{
    return !(number % 2);
}

int main()
{
    int n;
    cin >> n;
    cout << boolalpha << isEven(n) << endl;
    return 0;
}