+ 1
What is the output of 5.0% 2
5 Réponses
+ 8
Then c++ must only allow
int % int
+ 3
Thank you
+ 2
You need to use fmod() function from <cmath> header to get remainder of floating point division.
http://www.cplusplus.com/reference/cmath/fmod/
+ 1
Try it out. Let us know
+ 1
After compiling,an error occurs