Quote:
Sum of Exception in thread "main" 0's odd digits: java.util.IllegalFormatConversionException: f != java.lang.Integer
Java complain because
odd_digits_sum
is an integer and
%f
expect something else.
One can guess that if you look at documentation of
printf
, you will find how it works.