hi all
i Found this code
i Tried to compiled it
but he show error
It needs to be some minor adjustments
Code:
#include <stdio.h>
#include <string.h>
float average(float ary, float count)
{
float tot = 0.0;
int i;
for(i = 0; i < count i++)
tot += ary;
return(tot / count);
}
int main()
{
printf("\n\t\t\t****************************\n");
printf("\t\t\t****************************\n");
printf("\t\t\t******** L-G-H Team ********\n");
printf("\t\t\t****************************\n");
printf("\t\t\t****************************"\n);
printf("\t\t the result is %f\n", averag(5.5, 3.5));
printf("\t\t\t you got it :D\n\n");
printf(" press any key to exit...\n");
getche();
return 0;
}
please