write a program to input a float type number ( say a) using scanner class and find the value of b, where b=3√a +√a
answer fast
Answers
Answered by
1
Answer:
import java.util.*;
public class something
{
public static void main()
{
Double a, b;
Scanner sc = new Scanner (System.in);
System.out.println("Enter. number");
a=sc.nextdouble()
b=3*(math.sqrt(a))+(math.sqrt(a))
System.out.println("B="+b)
}
}
Similar questions