A computer prints all natural digits from 1 to 819.
The number of times it prints the digit 8 is?
Times printing 8 as the units digit = 10 (8) + 2 = 82
Times printing 8 as the tens digit = 10(8) = 80
Times printing 8 as the hundreds digit = 20
Total = 82 + 80 + 20 = 182 times