unable to run hello world program in c# console application
Your program executes successfully, but the console closes rightaway.
To prevent that, use Ctrl+F5
instead of just F5
.
That is working exactly as you have told it!
Basically, that code just says 'show this line of text'. So once that is done, with nothing else to do, it stops running.
Try adding
Console.ReadKey();
And run it again