Saved Bookmarks
| 1. |
Can anyone please solve this in java using scanner |
|
Answer» Answer: import java.util.Scanner; public class maths { public static void main(String ARGS[]) { Scanner in = new Scanner(System.in); System.out.println("Please input the NUMBER"); double a=in.nextDouble(); double c=Math.sqrt((Math.cbrt((Math.sqrt((cube(a))))))); System.out.println("Printing the answer "+c); } public static double cube(double x) { double q=x*x*x; return q; } } /*Hey friend, I have made this PROGRAM in java to calculate the given operation in java..USING Scanner class for taking input from user and PRINT the following result..*/ |
|