#C4475. Even Product or Sum
Even Product or Sum
Even Product or Sum
This problem requires you to read two integers, \(x\) and \(y\), from standard input and compute the product \(P = x \times y\). If \(P\) is even (i.e. \(P \mod 2 = 0\)), then output \(P\). Otherwise, output the sum \(x + y\). This simple conditional task is designed to test your basic arithmetic and input/output handling skills.
inputFormat
The input consists of two space-separated integers, x and y, provided on a single line via standard input.
outputFormat
Print a single integer to standard output: the product x*y if it is even, or the sum x+y if the product is odd.## sample
3 4
12