I am having trouble in simple function, when compile there is an error
"type mismatch in redeclaration of count" I don't know what is wrong with
my code. For me it looks fine nothing wrong.
What is wrong with my code ? (I am using Borland 3.1 DOS and win98.)
Thanks for any help!
printf("Enter Your Salary : ");
printf("Enter Your Sale : ");
printf("Total Salary : %f",count(sale,salary) );
float count(float sale, float salary)
bonus = sale * 0.5;
if ( sale >=500000)
bonus = sale * 0.3;
bonus = sale * 0.1;
total = salary + bonus;