Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- Console.WriteLine("Welcome To The Application");
- Console.Write("Program> "); // Expecting something such as: /animal dog -c brown -s medium
- string sInput = Console.ReadLine();
- // What would be an appropriate method to read 1. /thecommand then based on the command
- // maybe using switch, expect the arguments like -c brown -s medium or -c green -y 1999
- // and display them into the console?
- // if /animal is detected, display what would be:
- // Console.WriteLine("Animal: dog");
- // Console.WriteLine("Color: brown");
- // Console.WriteLine("Size: medium");
- // if /car is detected, display what would be:
- // Console.WriteLine("Car: civic");
- // Console.WriteLine("Color: green");
- // Console.WriteLine("Year: 1999");
- }
Add Comment
Please, Sign In to add comment