isless(): This function is available in the file cmath. This function checks that the first number (x) is less than the second number (y). If the first number is less than the second number it will return true (any non-zero number), otherwise it returns false(0).
Cases:
If x<y: It returns true.
If x>=y: It returns false.
Parameters: Two parameters are required for this function.
x: The first value.
y: The second value.
Syntax:
isless(x,y)
For Example:
isless(10,12) = > It returns true.
Approach
C++
#include <bits/stdc++.h>using namespace std;int main(){double X = 10, Y = 12;cout << isless(X, Y) << "\n";return 0;}
No comments:
Post a Comment