top of page

Program to Convert Integer to String in C#



In this article, we will write a C# program to convert Integer to String using ToString() method

  class Program
    {
        static void Main(string[] args)
        {
            String str1;
            String str2;
            int x = 100;
            str1 = x.ToString();
            int y = 200;
            str2 = y.ToString();
            Console.WriteLine(str1 + " " + str2);
            Console.ReadLine();
        }
    }

Output:

100 200


Read more :



Source: csharpstar


The Tech Platform

0 comments
bottom of page