Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- public class Program
- {
- enum Plec {female, male, other}
- static void Gender()
- {
- Plec x;
- x = (Plec)Enum.Parse(typeof(Plec), Console.ReadLine());
- Console.WriteLine("So your gender is " + x);
- }
- static void Gender(params string [] genders)
- {
- foreach (string y in genders)
- {
- Console.WriteLine("So your gender is " + y);
- }
- }
- public static void Main()
- {
- Console.WriteLine("What is your gender? male/female/other?");
- Gender(Console.ReadLine());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement