Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Conversation
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Hello! What is the name of your character?");
- string userName = Console.ReadLine();
- Console.WriteLine("Hello, " + userName + "! How is your day?");
- Console.ReadLine();
- Console.WriteLine("Well, I don't know what you said, but I hope it was a nice thing!");
- Console.WriteLine("Anyways, I need help with my math problem. Can you tell me what 9 + 10 is?");
- int answer;
- answer = Convert.ToInt32(Console.ReadLine());
- if (answer == 19)
- {
- Console.WriteLine("Thank you!");
- Console.WriteLine("*The next day*\nOk, where is your answer?\nOh, my answer is " + answer);
- Console.WriteLine("Oh, well, good job because you got it right!\nYes!");
- } else
- {
- Console.WriteLine("Thank you!");
- Console.WriteLine("*The next day*\nOk, where is your answer?\nOh, my answer is " + answer);
- Console.WriteLine("Oh, well, you got it wrong!\nAww man! Note to self: 'never take answers from people I don't really know.'");
- }
- // Wait before closing
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement