When I use % operator on float values I get error stating that \"invalid operands to binary % (have ‘float’ and ‘double’)\".I want to enter the integers value only but the n
You can use the fmod function from the standard math library. Its prototype is in the standard header .