ZeroJudge & UVa Online Judge answers
#include using namespace std; int main() { int n; while(cin >> n) { if(n%2==0) cout << n << endl; else cout << n-1 << endl; } }
No comments:
Post a Comment