C# Program to show the Relational Operators

Sunday 12 February 2012


Code:
using System;
class RelationalOperator
{
    public static void Main()
    {
        float a=15.0F, b=20.75F, c=15.0F;

        Console.WriteLine("a=" +a);
        Console.WriteLine("b="+b);
        Console.WriteLine("c="+c);
        Console.WriteLine("a<b is"+(a<b));
        Console.WriteLine("a>b is" +(a>b));
        Console.WriteLine("a==c is"+(a==c));
        Console.WriteLine("a<=c is"+(a<=c));
        Console.WriteLine("a>=b is"+(a>=b));
        Console.WriteLine("b!=c is"+(b!=c));
        Console.WriteLine("b==a+c is"+(b==a+c));
    }
}
OUTPUT:-

8 comments:



  1. It is really a great work and the way in which u r sharing the knowledge is excellent.
    Thanks for helping me to understand basic concepts. As a beginner in Dot Net programming your post help me a lot.Thanks for your informative article. Dot Net | Dot Net Training

  1. Unknown said...:

    Given so much information in it. its very useful .perfect explanation about Dot net framework.Thanks for your valuable information. Best dot net training in velachery | dot net course material

  1. Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking.
    DOT NET Course in Chennai

  1. rmouniak said...:

    This blog gives very important info about .Net Thanks for sharing
    .Net Online Training Hyderabad

  1. tamilsasi said...:

    Nice tutorial. Thanks for sharing the valuable information. it’s really helpful. Who want to learn this blog most helpful. Keep sharing on updated tutorials…
    Selenium training in Chennai

    Selenium training in Bangalore

    Selenium training in Pune

    Selenium Online training

  1. sathish said...:

    Really you have done great job,There are may person searching about that now they will find enough resources by your post
    Selenium training in Chennai

    Selenium training in Bangalore

    Selenium training in Pune

    Selenium Online training

  1. Lakshman said...:
    This comment has been removed by the author.

Post a Comment