Untitled

Anonymous
plain_text
02/11/2024 8:43 AM
340 B
11
Indexable
#include <iostream>
#include <cmath>
using namespace std;
bool chetnost(int x) 
{
	if (x % 2 == 0) {
		return 1;
	}
	return 0;
}
int main()
{
	int x;
	cin >> x;
	if (chetnost(x) == 1) {
		cout << "TRUE";
	}
	else cout << "FALSE";
}

Editor is loading...
Leave a Comment