invalid operands to binary % (have ‘float’ and ‘int’)

http://ideone.com/ZAHU4

cant find whats wrong with it..!!
your wrong is in this line

if((tr % 5 == 0) && (tr <= bal-tax))

the write is
if((tr / 5 == 0) && (tr <= bal-tax))

"%"
this opreator just come with int not float

sorry for my bad english
Last edited on
Topic archived. No new replies allowed.