Computer Science, asked by deepakdhaanya1, 7 months ago

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 vgirijanandan
1

Answer:

there is no variable named "ans" in given snippet

Answered by Medha55
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