Let us consider 10 successive seven digit numbers
a1a2a3a4a5a6 0,a1a2a3a4a5a6 1,a1a2a3a4a5a6 2,................a1a2a3a4a5a6 9,
where a1,a2,a3,a4,a5,a6 are some digits. We see that half of these 10 numbers i.e. 5 numbers have an even sum of digits.
The first digit a1 can assume 9 different values of which the sum of the digits a2,a3,a4,a5,a6 can assume 10 different values.
The last digit a7 can assume only 5 different values of which the sum of all digits is even.
∴ There are 9×105×5
=45×105 seven digit numbers the sum of whose digits is even.