islessequal(): This function is available in the file cmath. This function checks that the first number (x) is less than or equal to the second number (y).
Cases:
If x< = y : It return true.
If x>y : It return false (0).
Parameters: One parameter is required for this function.
x: The first number.
y: The second number.
Syntax:
islessequal(x,y)
For Example:
islessequal(10,10) = > It return true.
Approach
C++
#include <bits/stdc++.h>using namespace std;int main(){double X = 10, Y = 10;cout << islessequal(X, Y) << "\n";return 0;}
No comments:
Post a Comment