Number Mirror Codechef Solution

Hello Programmers In this post, you will know how to solve the Number Mirror Codechef Solution.

Number Mirror Codechef Solution
Number Mirror Codechef Solutions

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.

Ezoicreport this adProblem

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.

Next: Helping Chef Codechef Solution

Sharing Is Caring

Leave a Comment

Ezoicreport this ad