Computer Science, asked by armanpuri08, 9 months ago

Unsolved Java Programming:

Write a program to find and display the value of the given expression

(1) x+3/6-2x+5/3; taking the value of x=5

(2)a^2+b^2+c^2/abc; taking the value a=5,b=4,c=3​

Answers

Answered by yash337558
23

class compute

{

public static void main (String args[ ])

{

int x = 5;

int a = 5;

int b = 4 ;

int c = 3;

int d = x+(3/6)-2*x+(5/3);

int y = a*2*2+b*2*2+c*2*2/(a*b*c);

System.out.println("Your first answer"+d);

System.out.println("Your second answer"+y);

}

}

HOPE THIS HELP YOU........

PLEASE MARK AS BRAINLIEST

Similar questions