Computer Science, asked by Lookatmydab12, 5 months ago

Write down Java expression for x^3+ y^3+ (xy/3)

Answers

Answered by rohanmanjunath6
4

Answer:assume the expression = z

Import java.util.*;

public class xy

{

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);

}

}

Explanation:

Similar questions