I know its simple problem, but i want to know if it can be solved some other way around.Here goes the problem.
Input: 234 , 54678 , 34987
Problem is to calculate how many of the numbers(by number i mean the comma separated number not single digit) has an average greater than 2.Sure we can sum up digit's of each comma separated numbers and then calculate the average by dividing it by its count. But i want to know if there is some other way of doing it which skips summing up the digits and dividing it by its count.