Skip to content

Instantly share code, notes, and snippets.

@ellenia
Created December 19, 2016 18:48
Show Gist options
  • Save ellenia/8c0d3d7907368bbc573650e3b079c6f8 to your computer and use it in GitHub Desktop.
Save ellenia/8c0d3d7907368bbc573650e3b079c6f8 to your computer and use it in GitHub Desktop.
namespace DataParsing
{
class Program
{
static void Main(string[] args)
{
Console.Write("Please enter your name: ");
string name = Console.ReadLine();
Console.Write("Please enter your age: ");
string stringAge = Console.ReadLine();
Byte byteAge = Byte.Parse(stringAge);
Console.Write("Are you married (True/False): ");
bool married = Boolean.Parse(Console.ReadLine());
Console.WriteLine();
Console.WriteLine("{0} {1} {2}", name, byteAge, married);
Console.ReadKey();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment