Format a string

image_pdfimage_print
   
  

using System;
using System.Collections.Generic;
using System.Text;

class Program {
    static void Main(string[] args) {
        int theInt = 90;
        double theDouble = 9.99;
        bool theBool = true;

        Console.WriteLine("Int is: {0}
Double is: {1}
Bool is: {2}",theInt, theDouble, theBool);
    }
}

   
     


This entry was posted in Data Types. Bookmark the permalink.