Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text.RegularExpressions;
  5.  
  6. namespace PersonalInformation{
  7. public class Program{
  8. public static void Main(string[] args){
  9. //Variables
  10. string name;
  11. int age = 0;
  12. string gender;
  13.  
  14. //Main code
  15. Console.WriteLine("What is your name?");
  16. name = Console.ReadLine();
  17. Console.WriteLine("How old are you?");
  18. age = int.Parse(Console.ReadLine());
  19. Console.WriteLine("What is your gender?");
  20. gender = Console.ReadLine();
  21. Console.WriteLine("\n\n\nYour name is {0} ", name);
  22. Console.WriteLine("Your age is {0}",age);
  23. Console.WriteLine("Your gender is {0}",gender);
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement