Computer Science, asked by ojasgangwar, 9 months ago

write java expression of
z= 5x³+2y/ x+y​

Answers

Answered by 21532kumarisonianaga
27

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

}

}

You can input data members via Buffer also

You can take the data type as Double also.

Hope it helps

I am a BTS lover

Answered by joshiparishrut4
3

Answer:

Z=5*x*x*x + 2*y*x +y

Explanation:

Similar questions