write a formula for finding number of integers between given two integers a and b (i) excluding a and b. (ii) including a and b
Share
write a formula for finding number of integers between given two integers a and b (i) excluding a and b. (ii) including a and b
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
(i) ( higher integer - lower integer ) - 1
(ii) ( higher integer - lower integer ) + 1