This is the same issue as your previous question at
Pls help I m new to C and I can t figure it out[
^], and you were given the solution. Try to make more effort to read the error message and look carefully at your code. You are using a format string that expects two parameter values, but you only pass a single value to the
printf
function.
printf(" %f years is %f months " , months);
1 2 1 ... where is the years value?