Inactive Tutor answered 01/10/22
Tutor
New to Wyzant
public class MyClass {
public static void main(String args[]) {
double ans = Math.pow(2, 14);
System.out.println("2^14="+ans);
}
}
Rubayet A.
asked 12/09/21Write a Java code which gives the value of for n= 2,4, … 2^14. You can use the function Math.pow(x, y).
Inactive Tutor answered 01/10/22
public class MyClass {
public static void main(String args[]) {
double ans = Math.pow(2, 14);
System.out.println("2^14="+ans);
}
}
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.