If else for int : If : Language Basics C# Source Code


Custom Search

C# Source Code » Language Basics » If »

 

If else for int









    

/*
 * C# Programmers Pocket Consultant
 * Author: Gregory S. MacBeth
 * Email: gmacbeth@comporium.net
 * Create Date: June 27, 2003
 * Last Modified Date:
 */
using System;

namespace Client.Chapter_4___Program_Control
{
  public class ifelse
  {
    static void Main(string[] args)
    {
      int a = 5, b = 5, c = 10;

      if (a == b)
        Console.WriteLine(a);

      if ((a > c) || (a == b))
        Console.WriteLine(b);

      if ((a >= c) && (b <= c))
        Console.WriteLine(c);
    }
  }
}

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Language Basics
» If