Assume that we have to compute and print the square root of the number.
1 2 3 4 5 6 7 8 9 10 11 | public class JavaEx { public static void main(String args[]) { double a = 10; double b; b = Math.sqrt(a); System.out.println("b " + b); } } |