Concatenation an integer and a string in C#

This code shows concatenation of an Integer and string and show the output in a console application

class Program
    {
        static void Main(string[] args)
        {
            int intInteger;
            string strString;
            intInteger = 17;
            strString = "\"Integer value\" is";
            Console.WriteLine("{0} {1}.", strString, intInteger);
            Console.ReadKey();
        }
    }
Ebook Download
View all
Learn
View all