IsGreater Function


  • It is used for checking between numbers .
  • It returns non-zero value on 1st number being greater .

  • Syntax:

    int isgreater(float arg1 , float arg2);

    Example:

    #include <stdio.h>
    #include <math.h>
    
    int main()
    {
      printf("isgreater(1.0, 2.0) %d\n", isgreater(3.0, 2.0));
    
      printf("isgreater(1.0, 1.0) %d\n", isgreater(5.03, 5.03));
    
      printf("isgreater(2.0, 1.0) %d\n", isgreater(2.0, 14.0));
    
      return 0;
    }
     
    Back