Program to illustrate Relational Operator


     # include <iostream.h>
     int main( )
     {
        int a , b , c ;
        a = 2 ;
        b = 7 ;
        cout <<"a = "<< a ;
        cout<<"\n b = "<< b ;
        cout<<"\n"<< (a<b) ;
        cout<<"\n"<< (a>b) ;
           cout<<"\n"<< (a<=b);
        cout<<"\n"<< (a>=b);
        cout<<"\n"<< (a==b);
        cout<<"\n"<< (a!=b);
        a = 12 ;
        b = 5 ;
        cout<<"a = "<< a;
             cout<<"\n b = "<< b;
        cout<<"\n "<< (a<b);
        cout<<"\n" << (a>b);
        cout<<"\n" << (a<=b);
        cout<<"\n" << (a>=b);
        cout<<"\n" << (a==b);
        cout<<"\n" << (a!=b);
        a = 3 ;
        b = 3 ;
        cout<<"a = "<<a ;
        cout<<"\n b = "<<b ;
        cout<<"\n" << (a<b) ;
        cout<<"\n" << (a>b) ;
        cout<<"\n" << (a<=b) ;
        cout<<"\n" << (a>=b) ;
        cout<<"\n" << (a==b) ;
        cout<<"\n" << (a!=b) ;
        return 0;
      }

3 comments:

  1. Somebody essentially assist to make seriously articles I'd
    state. This is the very first time I frequented your website
    page and up to now? I amazed with the analysis you made to make this
    particular put up amazing. Excellent task!

    My website; casino

    ReplyDelete
  2. Dߋes your blog have a contact ρage? I'm having a tough time loсating it but, I'd likie to send you an e-maіl.
    I've got some crеatіve ideeas for your blog yoս might be
    intеrested in hearing. Eіther ѡay, great website and I look forwarԁ to seeing it expɑnd over time.

    ReplyDelete
  3. Yes! Finally someone writes about melodist.


    my web blog ... phen375 reviews

    ReplyDelete