Number Mirror Codechef Solution

Number Mirror Codechef Solution

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 Solution in Python

a = int(input())
print(a)

Number Mirror – CodeChef Solution 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 Solution 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 Chase2learn.This tutorial is only for Educational and Learning purpose.

Leave a Comment