Write a Java program to find the value of the given expression, where x=5. P=√x+3
Answers
Answered by
3
❥︎ What can be the Java program of the expression z=5x^3+2y/x+y?
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.
Similar questions
Social Sciences,
1 day ago
Biology,
1 day ago
Social Sciences,
2 days ago
English,
2 days ago
Math,
8 months ago
Science,
8 months ago