Number Mirror CodeChef Solution

Number Mirror CodeChef Solution. In today Post we are going to see the solution of Number Mirror problem which is CodeChef entry level problems for be

Number Mirror - CodeChef Solution

In today Post we are going to see the solution of Number Mirror problem which is CodeChef entry level problems for beginners.

After reading this post you will clearly understand how to solve this easy problem and you will be able to solve this problem in just few minutes by your own.

Number Mirror CodeChef Solution - Sloth Coders

Problem Statement - Number Mirror

Write a program that accepts a number, n, and output the same number.

Input 

The only line contains a single digit.

Output

Output the same number which was taken by the user in the same line.

Constrains

  • 0 ≤ n ≤ 105

Sample Input 

123

Sample Output

123

Number Mirror - CodeChef Solution

Python 3 

# cook your dish here
a = int(input())
print(a)
Number Mirror CodeChef Solution
Number Mirror CodeChef Solution


Explanation

Here, we can see the first line of our source code is #cook your dish here. It is use just as a comment to help the coders while writing the program so that coders do not forget what the certain code is about.

To take the input from the user we use input() command and here we have used it with int data type because we only want integers as a input.

Finally, at the end we have used print command to display the input taken by the user. 

Conclusion

So, this was the simple solution of this simple problem. I hope you have understand the complete program but if you still have any doubt regarding the problem (Number Mirror), feel free to ask in the Comment Section.

Happy Coding !!

A Sloth Who loves to Code.

Sloth Coders is a Learning Platform for Coders, Programmers and Developers to learn from the basics to advance of Coding of different langauges(python, Java, Javascript and many more).

Post a Comment