Computer Science, asked by anjukhare79, 7 months ago

write java expression for the statement √x+y/2x-y​

Answers

Answered by harsimarsingh1801
2

Answer

public class help

{

public static void main(String[]args)

{

double x=1; //if x=1

double y=2; //if y=2

double a=sqrt(x+y);

double ans=a/2x-y;

System.out.println((int)ans);

Explanation:

Similar questions