Input Output

Beginner Problems Language Basics Easy

Complete the function printNumber which takes an integer input from the user and prints it on the screen.


Use:-

  • for C++ : cout << variable_name;
  • for Java : System.out.print();
  • for Python : print()
  • for Javascript : console.log()

Examples:

Input(user gives value): 7

Output: 7

Input(user gives value): -5

Output: -5

Input(user gives value): 0

Constraints

  • -1000 <= User Input <= 1000

Company Tags

TCS Cognizant Accenture Infosys Capgemini Wipro IBM HCL Tech Mahindra MindTree