write an expression in Java for 3x^2+2y/x-y
Guys please answer to this question for God sake
Don't give rubbish answer to me and if you give rubbish answer to me, I will report.
And who know plz answer to this question.
And who doesn't know this answer, Please shut your mouth and help others who are in trouble.
Answers
Answered by
1
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= (3x^2+2y/x-y) ;
System.out.println(“the required expression is”+z);
}
}
Answered by
1
Your question :-
3x^2 + 2y / x-y
Java expression :-
(Math.pow(3x,2) + 2*y / x - y);
hope it helps you...
Similar questions