In Java a method for accept an exponential value through scanner object
Answers
Answered by
6
When programming in Java or any other language, you will most likely need to use input information from a user. Java provides many different methods for getting in user information, but the most common and perhaps easiest to implement method is to use the Scanner object.
Answered by
14
The method in JAVA to accept an exponential value through scanner object is as following:
double num = scanner.nextDouble()
double result = Math.exp(num);
Java is a programming language. It is based on the concept of OOP, or Object-oriented programming. Java is quite famous and used in many places like for example Android, Linux etc
Similar questions