Home > Back-end >  How do I call in C? Kneel to beg
How do I call in C? Kneel to beg

Time:10-05

Description:
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:

refer to the second floor the wise know already should good karma response:
bool f (int m) {return (! (m % 3) | |! (m % 5) | |! (7) m %); }
Int a=1, b=111; While (a
cout & lt; Without clear what ends do not careless use

CodePudding user response:

Variables can not cloth?
For (I=a; i <=b)
{
If (I % 3==0 | | I % 5==0 | | I % 7==0) co++
}
Cout CodePudding user response:

For (I=a; i <=b; I++)
{
If (I % 3==0 | | I % 5==0 | | I % 7==0) co++
}
CoutBegin to play
  • Related