How to ask a series of questions and get user inputs in C#
Hi, so I've been fiddling with my C# code trying to get it to allow me to ask a series of questions. So basically after one question is answered (the user has inputted the data and pressed enter), the next question should pop up and the next User input box should pop up. For example: Q1. What is your name? [User inputs data and presses enter] Q2. How old are you? [User inputs data and presses enter] Q3. What programming language are you currently studying? [User inputs data and presses enter] [Finishes] Below is a snippet of my code, what's wrong with it? ------------------------------------------------------------------------------------- string name; string age; string pLang; Console.WriteLine("What is your name?"); name = Console.ReadLine(); Console.WriteLine("My name {0}", name); Console.WriteLine("How old are you?"); age = Console.ReadLine(); Console.WriteLine("{1}", age); Console.WriteLine("What programming language are you currently studying?"); pLang = Console.ReadLine(); Console.WriteLine("{1}", pLang); -------------------------------------------------------------------------------------