Saturday, November 7, 2009

If else condition ststement

using System;
using System.Collections.Generic;
using System.Text;

namespace conditional_statement
{
class Program
{
static void Main(string[] args)
{
int a = 10;
int b = 5;
if (a > b)
{

Console.WriteLine(" A is greater");
}
else
{
Console.WriteLine("B is greater");
}


}
}
}

No comments:

Post a Comment