Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- int age = int.Parse(Console.ReadLine());
- string gender = Console.ReadLine();
- if (age>=16)
- {
- if (gender=="f")
- {
- Console.WriteLine("Ms.");
- }
- else
- {
- Console.WriteLine("Miss");
- }
- }
- else
- {
- if (gender=="m")
- {
- Console.WriteLine("Mr.");
- }
- else
- {
- Console.WriteLine("Master");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment