Exponential expression

Report a typo

Write a program which reads a double value x x and evaluates the result of x3+x2+x+1 x^3 + x^2 + x + 1

Output data format

The double result of the expression.

Sample Input 1:

22.5

Sample Output 1:

11920.375
Write a program in Java 17
import java.util.Scanner;

class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// put your code here
}
}
___

Create a free account to access the full topic