Hello Programmers In this post, you will know how to solve the Number Mirror Codechef Solution.
One more thing to add, don’t directly look for the solutions, first try to solve the problems of Codechef by yourself. If you find any difficulty after trying several times, then you can look for solutions.
Problem
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 Solutions in Python
a = int(input()) print(a)
Number Mirror CodeChef Solutions in CPP
#include <bits/stdc++.h> typedef long long ll; using namespace std; int main() { // FAST I/O => ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int t ; cin >> t; cout << t; }
Number Mirror CodeChef Solutions in JAVA
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.println(n); sc.close(); } }
Disclaimer: The above Problem (Number Mirror) is generated by CodeChef but the solution is provided by BrokenProgrammers. This tutorial is only for Educational and Learning purpose.
Note:- I compile all programs, if there is any case program is not working and showing an error please let me know in the comment section. If you are using adblocker, please disable adblocker because some functions of the site may not work correctly.