The answer is c)945
Let a and b be two numbers.
The condition is |a-b|<=10
When a=1 b can be 2,3,4,5,6,7,8,9,10,11 (I've neglected a-b=0 since none of the option matches the answer.)
So there are 10 ways.
Same thing happens till a=90.
So no. of ways is 90*10=900
Now when a=91 b can be 92,93,94,95,96,97,98,99,100
ie 9 ways
When a=92 there are 8 ways.
So on when a=100 there is only 1 way.
So total no. of ways=900+9+8+....+1=
=900+9*10/2
=945
