comparator

 comparator using c:


int main(){

    int a, b;

    printf(" enter a no : ");

    scanf("%d", &a);

    printf(" enter a no : ");

    scanf("%d", &b);

    

    if (a==b){

        printf(" no are equal");

    }

   else if (a<b){

       printf(" %d<%d", a,b);

   }

   else if (a>b){

       printf(" %d>%d", a,b);}

   


  

  

    

    

   

   

    

    return 0;

}


Comments

Popular posts from this blog

Sum of Even Numbers till N

Find the Runner-Up Score!

Print All Substrings