Created
February 12, 2019 19:39
-
-
Save dietergoetelen/6e4b4ad5074fca932b2a60f93df6da44 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Syntra.AddressCard | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// user input | |
Console.WriteLine("Gelieve een design karakter te kiezen (vb *, #, ...)"); | |
char designCharacter = Convert.ToChar(Console.ReadLine()); | |
Console.WriteLine("Gelieve je gegevens te vervolledigen"); | |
Console.Write("Voornaam: "); | |
string firstName = Console.ReadLine(); | |
Console.Write("Familienaam: "); | |
string lastName = Console.ReadLine(); | |
Console.Write("Adres: "); | |
string address = Console.ReadLine(); | |
Console.Write("Postcode: "); | |
string zipCode = Console.ReadLine(); | |
Console.Write("Plaats: "); | |
string town = Console.ReadLine(); | |
/* | |
var myResult = "Hello " + 12; | |
var mySecondResult = myResult + 15; | |
*/ | |
// output | |
Console.WriteLine(); | |
Console.WriteLine(designCharacter.ToString() + " " + (designCharacter + designCharacter)); | |
Console.WriteLine(designCharacter + "\t" + "Voornaam\t: " + firstName); | |
Console.WriteLine(designCharacter + "\t" + "Familienaam\t: " + lastName); | |
Console.WriteLine(designCharacter + "\t" + "Adres\t\t: " + address); | |
Console.WriteLine(designCharacter + "\t" + "Postcode\t: " + zipCode); | |
Console.WriteLine(designCharacter + "\t" + "Plaats\t\t: " + town); | |
Console.WriteLine(designCharacter + designCharacter + designCharacter); | |
Console.ReadKey(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment