Computer Science, asked by kushagranirmalgupta, 2 months ago

Im| + |n|2. Ip-2xy|
pls convert it in. java ​

Answers

Answered by simonsaikia9
1

Answer:

expression is:

exp = Math.abs(m)+(Math.abs(n)*2)*Math.abs(p-2*x*y);

Program:

public class MyClass {

public static void main(String args[]) {

int m=1;

int n=-2;

int x=-1;

int y=2;

int p=-1;

int exp = Math.abs(m)+(Math.abs(n)*2)*Math.abs(p-2*x*y);

System.out.println("Ans = " + exp);

}

Similar questions