the correct the given snippet int a =45.1;. float b = 15.05; double c = 92sum = 0;
sum = (a+b)*c/2;
System.out.println(“The answer =" +ans)
Answers
Answered by
1
Answer:
there is no variable named "ans" in given snippet
Answered by
5
Answer:
(a+b)*c/2
=(45.1+15.05)*92/2
=60.6*92/2
=5575.2/2
=2787.6
Explanation:
pls mark me as branliest
u will also get point
Similar questions