asked 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!

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}

answered
User Xushao
by
7.8k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.