Computer Science, asked by khokonsarkar256, 6 months ago

Find the output of the followigexpressions : (1) - 17//5​

Answers

Answered by moshnetic
0

Answer:

(1) - 17//5 will give output of - 2

Explanation:

17//5 = 3

Because It is floor division

Floor division means : It divides the 2 numbers and prints out only the whole number and leaves out the decimal numbers

    eg. 3/2 = 1.5 but 3//2 = 1 because in floor division we leave out the decimal           numbers and write the whole numbers only. In this example the .5 is decimal so it is left out. Only the 1 is whole number so it is written

So (1) - 17//5

= (1) - 3

= - 2

Similar questions