So I know that this is very easy, and I apologize for asking it here. Unfortunately, I am confused and there is no one else to ask me ...
However, I am trying to use Java to solve the following equation:
__________________? ??? (3.1 ^ 17 + 2.7 ^ 11) The code I currently have does not work. This is:
public class math {public static zero main (string [] args) {double a = 3.1 double b = 2.7; Double C = Math. Sqrt (Math. Pow (A, 17) + Math. Pow (B, 11)); Println (c); }}
Your class name is Math, you can call Math You are trying to get the application , which is not present in your class, you have to import the refactor the name and class library of your class. Click on the right file name, refactor> Rename If your class should be named , you must call: java.lang.Math .pow (); Another problem is that you are missing ; After : Double A = 3.1 Fix these two problems and you will have a working code!
In the future, please post stack marks and specific problems.
No comments:
Post a Comment