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.
Answer =
Due to use of ‘/’ division in the program.
Thanks 👍
ReplyDeleteWelcome : )
Deletenandrigal for your awasome answer we can copy the answer instend of our brain works.. thank you so much
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )