How to print a value in console application C#
<p>This is the code which running on my console.</p>

<pre><code>public static void Main(string[] args)
{
    string X = GeneratePassword();
    Console.WriteLine("The password = ", X);
    Console.ReadLine();
    Console.ReadKey();
}
</code></pre>

<p>My <code>GeneratePassword</code> function is returning value for sure, but somehow I am unable to print it. I might be missing a small thing. Please help.</p>

<p>Thanks in advance.</p>