Input and Print Integer

Practice this coding question on Coding Gurukul.

Problem statement

A weather station sends one signed integer reading to a diagnostic terminal. The terminal must echo the value so a technician can check the input and output connection. Your task Read an integer n and print the same integer value. Important details Preserve the sign and value without performing a calculation. Zero and negative readings are valid. Output the decimal integer only, without units or a label. Whitespace around the input is just a separator and is not part of the reading. Choose a numeric type that supports the stated range. Worked example If the station sends -42, the terminal prints -42. Sending 0 produces 0 rather than an empty line.

Input format

One integer n.

Output format

Print n.

Constraints

-1000000000 <= n <= 1000000000.

Sample input

17

Sample output

17

Sign in to run or submit a solution in C++, Java or Python.

Loading Coding Gurukul…