Computer Science, asked by ritujain5895, 19 days ago

which of the following is the method to read numeric value during program execution

Answers

Answered by kishorirana03
0

Answer:

hope it is helpful to you.

Explanation:

In order to read a number (integer) from the user, we first create an object of the Scanner class and then invoke the nextInt() method. It is the most preferred method to take input of primitive types. Similarly, we can also use nextDouble(), nextLong(), nextFloat(), etc.

mark me as a brainliest plz

Similar questions