Challenge Solution: Answer: 45.14


#1

This was very easy: :smiley:

[code]#include <stdio.h>

int main(int argc, const char * argv[])
{

float floatA = 3.14;
float floatB = 42.0;

double sumOfFloats = floatA + floatB;

printf ("The sum of the two floats: %.2f\n", sumOfFloats);

   return 0;

}

[/code]

I rounded off the float to terminate the answer to a .2 number: 45.14 instead of 45.139999