in my homework i wrote a fuction that calculates some prices and prints to screen:
int one,two,sum;
one+=4.45;
two+=3.56;
printf("%d",one);
printf("%"itwo);
and the output is like that:
4
3
doesnt
4.45
3.56
i used float but this time the output is
0
0
how can i fix this problem???