isgreaterequal(): This function is available in the file cmath. This function checks that the first value (x) is greater than or equal to the second value(y) (i.e x>=y). This function returns true (1) if x > = y, otherwise it returns false(0).
Parameters: Two parameters are required for this function.
x: The first value.
y: The second value.
Syntax:
isgreaterequal(x,y)
For Example:
isgreaterequal(10,10) = > It returns true (1) because first number is equal to second number.
Approach
C++
#include <bits/stdc++.h>using namespace std;int main(){double X = 10, Y = 10;cout << isgreaterequal(X, Y) << "\n";return 0;}
No comments:
Post a Comment