Hi!
I have problem with type conversion.
when I compile the program I get this error:
( 'count' : redefinition; different basic types ).
please tell me about type conversion.
#include<stdio.h>
int count(double houre, double charge);
int main(){
double h=4;
double c=2;
printf("%d\n", count(h,c));
return 0;
}
int count(double houre, double charge){
double value;
if(houre<=3.0)
{
return charge;
}
else
{
value=(2+(0.5*(houre-3)));
return value;
}
return 0;
}