Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text.RegularExpressions;
- namespace PersonalInformation{
- public class Program{
- public static void Main(string[] args){
- //Variables
- string name;
- int age = 0;
- string gender;
- //Main code
- Console.WriteLine("What is your name?");
- name = Console.ReadLine();
- Console.WriteLine("How old are you?");
- age = int.Parse(Console.ReadLine());
- Console.WriteLine("What is your gender?");
- gender = Console.ReadLine();
- Console.WriteLine("\n\n\nYour name is {0} ", name);
- Console.WriteLine("Your age is {0}",age);
- Console.WriteLine("Your gender is {0}",gender);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement