isgreater() in C++

isgreater(): This function is available in the file cmath. This function checks that first value (x) is greater than the second value (y) or not. 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:

isgreater(x,y)

For Example:

isgreater(10,5) =  > It returns true.

Approach

C++

#include <bits/stdc++.h>
using namespace std;

int main()
{
    double X = 10Y = 5;

    cout << isgreater(XY<< "\n";

    return 0;
}


No comments:

Post a Comment