Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Edx_training
  8. {
  9. class StudentOnly
  10. {
  11. static void Main(string[] args)
  12. {
  13.  
  14. Console.WriteLine("Your Fist Name Please:");
  15. string fistName = Console.ReadLine();
  16.  
  17. Console.WriteLine("Your Last Name Please:");
  18. string lastName = Console.ReadLine();
  19.  
  20. Console.WriteLine("Your date of birth please:");
  21. DateTime birthday = DateTime.Parse(Console.ReadLine());
  22.  
  23. Console.WriteLine("What is your address please?");
  24. string addressLine1 = Console.ReadLine();
  25.  
  26. string addressLine2 = Console.ReadLine();
  27.  
  28. Console.WriteLine("City?");
  29. string city = Console.ReadLine();
  30.  
  31. Console.WriteLine("State?");
  32. string state = Console.ReadLine();
  33.  
  34. Console.WriteLine("Postal Code?");
  35. int zip = int.Parse(Console.ReadLine());
  36.  
  37. Console.WriteLine("Country?");
  38. string country = Console.ReadLine();
  39.  
  40. Console.WriteLine(fistName);
  41. Console.WriteLine(lastName);
  42. Console.WriteLine(birthday);
  43. Console.WriteLine(addressLine1);
  44. Console.WriteLine(addressLine2);
  45. Console.WriteLine(city);
  46. Console.WriteLine(state);
  47. Console.WriteLine(zip);
  48.  
  49. }
  50. }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement