Advertisement
kyrathasoft

WhereFrom

Jul 21st, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. using System;
  2. /*
  3. from Lesson 4 of C# console programming tutorial series at following URL:
  4. http://williammillerservices.com/windows-c-console-programming/
  5. GitHub gist -> https://gist.github.com/kyrathasoft/ab43a77559ba7a95de2519019953a78f
  6. Pastebin.com -> https://pastebin.com/c33gAU71
  7. */
  8. namespace HowdyGuys{
  9.     class WhatsUpDoc{
  10.         static void Main(){
  11.             Console.Write("What is your name? ");
  12.             string sName = Console.ReadLine();
  13.             Console.Write("And where are you located? ");
  14.             string sFrom = Console.ReadLine();
  15.             Console.WriteLine("Hello, {0}. I see that you're from {1}.", sName, sFrom);
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement