PLEASE SOLVE 6TH SUM
Attachments:
Answers
Answered by
1
Answer:
import java.util.Scanner;
import java.lang.Math;
public class Main
{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter value for a:");
double a = sc.nextDouble();
double b = (2*a) + Math.cbrt(a);
System.out.println("The value for b when a is " + a + " is " + b);
}
}
Explanation:
Similar questions