write the Java expression for the following z = x ^3 + y^3 + xy/3
Answers
Answered by
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
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
Computer Science,
6 months ago
Math,
6 months ago
India Languages,
11 months ago
Hindi,
1 year ago
Biology,
1 year ago