// Ride height program
using System;
class Program
{
// -------------------------
// Subprograms
// -------------------------
static bool valid_height(double height)
{
if (height > 104)
{
return true;
}
else
{
return false;
}
}
// -------------------------
// Main program
// -------------------------
static void Main()
{
Console.Write("Enter the height of the person in cm: ");
double height = Convert.ToDouble(Console.ReadLine());
if (valid_height(height))
{
Console.WriteLine("Height OK.");
}
else
{
Console.WriteLine("Sorry, you are too small.");
}
}
}