namespace ConsoleApp1 { class Program { static void Main(string[] args) { // create variables string StudentInformation = ""; string firstName = ""; string lastName = ""; DateTime birthDate; string Address Line 1 = ""; string Address Line 2 = ""; string city = ""; string State/ Province = ""; int Zip/ Postal = 0; string Country = ""; // Assign some values StudentInformation = "Student Information"; firstName = "Hans"; lastName = "Brönimann"; birthDate = new DateTime(1990, 4, 1); Address Line 1 = "Musterstrasse 1"; Address Line 2 = "Hinterzimmernquartier"; city = "Entenhausen"; State / Province = "Bayern"; Zip / Postal = "11211"; Country = "Belmuga"; // use simple output with just variable name Console.WriteLine(firstName); Console.WriteLine(lastName); } } }
Address Line 1
Address Line 2
State / Province
Zip / Postal
/* // create variables string StudentInformation = ""; // Assign some values StudentInformation = "Student Information"; */ // create and assign variables string StudentInformation = "Student Information";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)