WAP to assign 5 to a and 6 to b. Find the value of c if. c=(a+b)(a^2)(b^3).Print the value of c with proper statement.
Answers
Answered by
0
Answer:
import java.lang.Math;
public class Main
{
public static void main(String[] args) {
int a = 5;
int b = 6;
double i = Math.pow(a,2);
double j = Math.pow(b , 3);
double c = (a+b) * (i) * (j);
System.out.println("The value of c is :" + c);
}
}
Explanation:
Similar questions