Q. Following code has an expression with all integer values. Why is the result in floating point form?

 

a, b, c = 2, 3, 6

d = a + b * c / b

print(d)

 

Answer =

Due to use of ‘/’ division in the program.

3 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. nandrigal for your awasome answer we can copy the answer instend of our brain works.. thank you so much




    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post