Input C/C++ Code:
Run
Output: