Boolean3. Given an integer A. Check the truth of the statement: "The number A is even".

Solution in Python 3:

import random
A = random.randrange(1,100)
print("Number(A): ", A)
x = A % 2
print("The number is even: ", x == 0)

Solution in C++:

#include <iostream>
using namespace std;
int main(){
int a;
cout << "Enter the number A: ";
cin >> a;
cout << "The number is even: " (a%2==0) << "." << endl;
return 0;
}