Computer Science, asked by adityakundu8k16dpsm, 1 month ago

Write the Java expression for the following:
a. z = 43 x2 + x-y
b. z = (x3y + xy3 ) / ( 3 x y )

Answers

Answered by Innocentgirl58
0

Import java.util.*;

public class xyz

{

4G+

( 80

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