Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
using System; namespace MyApplication { class Program { static void Main(string[] args) { int myInt = 10; double myDouble = 5.25; bool myBool = true; Console.WriteLine(Convert.ToString(myInt)); // Convert int to string Console.WriteLine(Convert.ToDouble(myInt)); // Convert int to double Console.WriteLine(Convert.ToInt32(myDouble)); // Convert double to int Console.WriteLine(Convert.ToString(myBool)); // Convert bool to string } } }
10
10
5
True