Computer Science, asked by podduturisupriya002, 3 months ago

Write in a single program that outputs the results of the following evaluations.

 Power of the number

 Absolute value of the number

 Square root of the number.​

Answers

Answered by ashutoshvikram17
0

Answer:

import java.util.*;

class outputs

{

   public static void main()

   {

       Scanner sc=new Scanner(System.in);

       System.out.println("Enter a number ");

       double a=sc.nextDouble();

       double b=Math.abs(a);

       double c=Math.pow(a,2);

       double d=Math.sqrt(a);

       System.out.println("The absolute value ="+b);

       System.out.println("The power of the Number ="+c);

       System.out.println("The Square Root of the Number = "+d);

   }

}

Similar questions