daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Oct 12th, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. static void Main(string[] args)
  2.     {
  3.  
  4.  
  5.  
  6.         Console.ForegroundColor = ConsoleColor.Red;
  7.         Console.BackgroundColor = ConsoleColor.DarkBlue;
  8.         Console.WriteLine("Friend- How is your day going?");
  9.         Console.WriteLine(" ");
  10.         Console.WriteLine("You- Good = 1" +
  11.             " / Bad = 2");
  12.         ConsoleKeyInfo keyinfo = Console.ReadKey();
  13.         if (keyinfo.KeyChar == '1')
  14.  
  15.         {
  16.             Console.WriteLine(" ");
  17.             Console.WriteLine("Friend- That's very nice!");
  18.         }
  19.         else
  20.         {
  21.             Console.WriteLine(" ");
  22.             Console.WriteLine("Friend- Im sorry is there anything I can do?");
  23.         }
  24.  
  25.         Console.WriteLine(" ");
  26.         Console.WriteLine("(Don't like your choice go back by clicking 3)");
  27.  
  28.         bool running = true;
  29.  
  30.  
  31.       if (keyinfo.KeyChar == '3')
  32.         {
  33.             //here is where i need the go back function
  34.  
  35.         }
  36.  
  37.     }
  38. }
RAW Paste Data
Top