Take an integer as input and print on the output screen.
Here, we will learn how to take an integer input from user and print on the screen, to take an integer value's input - we use Scanner class, for this we have to include java.util.* package in our Java program.
Consider the program:
Output
need an explanation for this answer? contact us directly to get an explanation for this answer