Number Mirror
Practice this coding question on Coding Gurukul.
Problem statement
A hardware team checks the connection between a numeric keypad and a display. In this first diagnostic, the controller must return the integer it receives without performing any calculation. This simple round trip lets the team verify that input parsing and output formatting are working before testing more complicated features. You are writing that minimal controller program. Your task Read one positive integer n and print the same integer. Do not add explanatory words, quotation marks, labels or arithmetic operations. The exercise checks that your program can accept a value through standard input and return it through standard output. Important details The output is the numeric value, not the number of digits in it and not its reversed representation. The value can contain several decimal digits. A normal trailing newline is allowed. Worked example If the keypad sends 2048, the controller should display 2048. No other output is required.
Input format
One positive integer n.
Output format
Print n.
Constraints
1 <= n <= 100000.
Sample input
2048
Sample output
2048
Sign in to run or submit a solution in C++, Java or Python.