write an expression in java for : Z = 5X*3+2YX+Y
Answers
Answered by
5
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);
}
}
You can input data members via Buffer also
You can take the data type as Double also.
MARK ME AS BRALIST
Similar questions
Business Studies,
2 months ago
Math,
2 months ago
Hindi,
2 months ago
Math,
6 months ago
Business Studies,
6 months ago
Math,
10 months ago
Physics,
10 months ago