using System;
namespace PersonalTitles_If_
{
internal class Program
{
static void Main(string[] args)
{
double years = double.Parse(Console.ReadLine());
char gender = char.Parse(Console.ReadLine());
if (years >= 16 && gender == 'm')
{
Console.WriteLine("Mr.");
}
else if (years < 16 && gender == 'm')
{
Console.WriteLine("Master");
}
else if (years >= 16 && gender == 'f')
{
Console.WriteLine("Ms.");
}
else if (years < 16 && gender == 'f')
{
Console.WriteLine("Miss");
}
}
}
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)