dash is used to accept integer value
Answers
Answered by
0
steps;-
The user enters an integer value when asked.
This value is taken from the user with the help of nextInt() method of Scanner Class. The nextInt() method, in Java, reads the next integer value from the console into the specified variable.
Similar questions