Computer Science, asked by 19aradhya6, 6 months ago

1. Write a program to initialize 5, 6, 3 to the integer variables a, b and c. Calculate and print the
result of the following expression by making use of mathematical functions:
S= a^2b^2c^2

Answers

Answered by Anonymous
4

Answer:

class program_1 //your choice

{

    public static void main(String args[])

    {

       int a = 5;

       int b = 6;

       int c = 3;

       double s;

    s = Math.pow(5,2) * Math.pow(6,2) * Math.pow(3,2);

      System.out.println(s);

   }

}

Explanation:

Similar questions