Computer Science, asked by nvty, 11 months ago

write the Java expression for the following z = x ^3 + y^3 + xy/3

Answers

Answered by Anonymous
61

Answer:

Import java.util.*;

public class xyz

{

public static void main()

{

Scanner sc= new scanner ( System.in);

int z= sc.nextInt();

int x=sc.nextInt();

int y=sc.nextInt();

z= (5*x*x*x+2*y)/(x+y);

System.out.println(“the required expression is”+z);

}

}

Answered by neeljvsuthar07
12

Answer:

Explanation:

Import java.util.*;

public class xyz

{

public static void main()

{

Scanner sc= new scanner ( System.in);

int z= sc.nextInt();

int x=sc.nextInt();

int y=sc.nextInt();

z= (5*x*x*x+2*y)/(x+y);

System.out.println(“the required expression is”+z);

}

}

Similar questions