Hi.
i am trying to learn c# I have newly installed Visual studio dot net 2005. i typed the following program but not getting ouptut
i did file->new->file->visual c#
i tried the following code
// Namespace Declaration
using System;
// Program start class
class InteractiveWelcome
{
// Main begins program execution.
static void Main()
{
// Write to console/get input
Console.Write("What is your name?: ");
// Console.Write("Hello, {0}! ", Console.ReadLine());
string name = Console.ReadLine();
Console.Write("Hello, {0}! ", name);
Console.WriteLine("Welcome to the C# Station Tutorial!");
// keep screen from going away
// when run from VS.NET
Console.ReadLine();
}
}
when i press f5 it just refreshes and goes back to the same screen