Hello, I am a first time poster and not that familiar with HTML codes or uses. I did try to look this one up and could not find it.
When I enter 26.2, it gives me 26.20001. I do not understand where that 1 is coming from.
Thank you
#include <stdio.h>
#define MAXCOUNT 4
int main()
{
int count;
float num, total;
printf("\n This program will ask you to enter %d numbers.\n\n", MAXCOUNT);
count=1;
total=0.0;
while (count<=MAXCOUNT)
{
printf("Enter a number: ");
scanf("%f", &num);
total+=num;
printf("The total is now %f\n", total);
count++;
}
printf("\n\nThe final total of the %d numbers entered is %f\n",MAXCOUNT, total);
return 0;
}