Computer Science, asked by sabzar1022, 9 months ago

What will be the output produced by following code statements?(a) 87//5 (b) 87//5.0 (c) (87 // 5.0) ==(87//5) (d)(87 // 5.0) == int(87/5.0)​

Answers

Answered by sswaraj04
53

Answer:

You must specify the programming language

I'm writing assuming its python language

Explanation:

a) 87//5

output

17

b) 87//5.0

output

17.0

c) (87//5.0) == (87//5)

output

True

d) (87 // 5.0) == int(87/5.0)

output

True

as comparing int with float it automatically convert int to float i.e 17 to 17.0 so both are equal

Hope it helps :-)

Answered by rangadeepa649
0

Answer:

true

Explanation:

87)/5==87//5.0

17==17.0

both are equal

Hence,true

Similar questions