F5 выход не отображается
Это мой первый день кодирования.когда я нажимаю F5, чтобы увидеть выход, он просто появляется на секунду .как я вижу результат ?
ниже приведен мой код
с уважением
Что я уже пробовал:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Mod1_Lab1 { class Program { static void Main(string[] args) { // create variable of different data types // initialize with a default value string firstName = ""; string lastName = ""; int age = 0; string street = ""; string city = ""; string country = ""; DateTime birthDate; // Assign some value firstName = "Tom"; lastName = "Thumb"; age = 48; street = "street 1"; city = "anytown"; country = "US"; birthDate = new DateTime(2013, 6, 5); // output to the console window // use simple output with just variable name Console.WriteLine(firstName); Console.WriteLine(lastName); // use palce holder style Console.WriteLine("{0} years old.", age); // use string concatenation Console.WriteLine(street + ", " + city + ", " + country); // use string interpolation // Console.WriteLine("Born on {birthDate}"); } } }