Bool write function f (int m), when m can be divided exactly by 3, 5, 7 in an arbitrary number, return true, otherwise it returns false, then use this function in the main function of the output between a and b can be divided exactly by 3, 5, 7 in an arbitrary number of digital total number, how do I call this series code, bosses, genuflect is begged
CodePudding user response:
Describe not clear, it seems that "in the main function, this function is used to output between a and b"CodePudding user response:
Bool f (int m) {return (! (m % 3) | |! (m % 5) | |! (7) m %); }Int a=1, b=111; While (a CodePudding user response:

CodePudding user response:
Int a=1, b=111, c=0; While (a & lt; B) if (ff (+)) + + c, cout & lt;

CodePudding user response: