Thursday, September 13, 2018

RELATIONAL OPERATOR


  • Problem Description

    Get two values as input and print the the equal to not equal to operator according to the input.
  • CODING ARENA
  • #include <stdio.h>
    int main()
    {
      int a,b;
      scanf("%d%d",&a,&b);
      if(a==b)
      {
        printf("equal");
      }
      else
        printf("not equal");
    return 0;
    }
  • Test Case 1

    Input (stdin)
    5 5
    
    
    Expected Output
    equal
  • Test Case 2

    Input (stdin)
    3 6
    
    
    Expected Output
    not equal

No comments:

Post a Comment