96.6k views
0 votes
How many numbers are from k to n? (Including k and n.)

*Do not give me a wrong answer, as you may be blocked. Only answer if you know it!

User Gioravered
by
7.6k points

1 Answer

4 votes

Answer:

n - k + 1

Explanation:

This is assuming (because you did not say) that n and k are integers and n is greater than k.

Example: from 2 to 5 {2, 3, 4, 5} includes 5 - 2 + 1 = 4 numbers.

Example: from -6 to 4 includes 4 - (-6) + 1 = 11 numbers, namely {-6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4}

User Xushao
by
7.8k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories