using System;
namespace Feb1
{
///
/// Summary description for Class1.
///
class Class1
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main(string[] args)
{
//
// TODO: Add code to start application here
//
Class1 c1 = new Class1();
}
public Class1()
{
Console.WriteLine("Please enter your age");
string userAge = Console.ReadLine();
int i = Convert.ToInt32(userAge);
testAge(i);
}
///
/// Test if age is less than 40
///
public void testAge(int inAgeInt)
{
if (inAgeInt <40)
{
Console.WriteLine("Congratulations on being less than 40!");
}
else
{
Console.WriteLine("You are so old!");
}
}
}
}