Untitled
unknown
plain_text
a year ago
345 B
5
Indexable
#include <iostream>
using namespace std;
int main()
{
int n = 0;
int x = 0;
cout << "n: ";
cin >> n;
if ((n % 2) == 1 || n==2) {
cout << "Not possible";
}
else {
x = n / 2;
if (x%2==0)
cout << x << " and " << x;
else
cout<<x-1<<' '<<x+1;
}
return 0;
}Editor is loading...
Leave a Comment