take two integer value from user. and then tell which number is having the highest digit average

write a program to take two integer value from user. and then tell which number
is having the highest digit average.

a.)

int num1 = 12345; :=> 3.0
int num2 = 27 :=> 4.5

num2 is having highest digit average.

b.)

int num1 = 12345; :=> 3.0
int num2 = 27003 :=> 2.4

num1 is having highest digit average.
12345
27
Total : 0 Discussion
Login