First time posting! Thank you very much I am very new and very excited to get started with programming. I used the suggested float values on page 22 of 3.14 and 42.0 for my challenge. Here is my code. I’m just curious why I didn’t get an even 45.140000 value and received a 45.139999 value instead?
Thanks very much!
Also, \n simply means new line right? So it can actually be optional here but still best practice, correct?
int main (int argc, const char * argv)
varA = 3.14;
varB = 42.0;
total = varA + varB;
printf(“The total of two floats is %f.\n”, total);