Created
December 19, 2016 18:48
-
-
Save ellenia/8c0d3d7907368bbc573650e3b079c6f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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