The Tech Platform

Mar 9, 20211 min

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 :

  1. Convert Float to String

  2. Convert String to Integer

  3. Convert String to Float

Source: csharpstar

The Tech Platform

www.thetechplatform.com

    0