Input C/C++ Code:

Output: