Write an expression in java for z= 5xy+2yx+y
Answers
Answered by
20
Explanation:
What can be the Java program of the expression z=5x^3+2y/x+y?
What are the benefits of AI in scanning?
Withthe official release of HMS Core 5.0, global developers now have access to HUAWEIScan Kit, and can incorporate next-level sca
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.
Answered by
7
Answer:
answer is in attachment
Similar questions
English,
4 months ago
Math,
9 months ago
Social Sciences,
9 months ago
Math,
1 year ago
Math,
1 year ago