/*
Mastering Visual C# .NET
by Jason Price, Mike Gunderloy
Publisher: Sybex;
ISBN: 0782129110
*/
/*
Example4_1.cs illustrates the use of the if statement
*/
public class Example4_1
{
public static void Main()
{
int smallNumber = 5;
int bigNumber = 100;
if (bigNumber > smallNumber)
System.Console.WriteLine(bigNumber + " is greater than " +
smallNumber);
else
System.Console.WriteLine(bigNumber + " is less than " +
smallNumber);
}
}
|