Write a program to find and display the value of the given expressions: a)(x+3)/6 – (2x+5)/3; taking the value of x=5 b) a2+b2+c2 /abc ; taking the values a=5,b=4,c=3;
Answers
Answered by
0
Answer:
public static void main(String args[]) { int x = 5; double value = ((x + 3) / 6.0) - ((2 * x + 5) / 3.0); System.out.println("Result = " + value); } }
Similar questions
Computer Science,
18 days ago
English,
1 month ago
Math,
1 month ago
Math,
9 months ago
Geography,
9 months ago