bool true false c++ code example
Example 1: bool function in c++
bool Divisible(int a, int b) {
return (a % b) == 0;
}
Example 2: bool function in c++
bool Divisible(int a, int b) {
return !(a % b);
}
bool Divisible(int a, int b) {
return (a % b) == 0;
}
bool Divisible(int a, int b) {
return !(a % b);
}