write a well java program to calculate the cube root,square root,power.
Answers
Answered by
1
Answer:
first mark me brainlist and.and 5 star
Answered by
0
Answer:
import java.util.*;
public class Main
{
public static void main(String[] args)
{
Scanner in=new Scanner (System.in);
int a=2,b=3;
System.out.println("cube root is = "+Math.cbrt(a));
System.out.println("square root is = "+Math.sqrt(a));
System.out.println("power = "+Math.pow(a,b));
}
}
Similar questions