Mix string and integer in string cancatenation : String Concat : String C# Examples


C# Examples » String » String Concat »

 

Mix string and integer in string cancatenation









    
using  System;    

class  MainClass  {    
    public  static  void  Main()  {    

        string  result  =  String.Concat("hello  ",  88,  "  ",  20.0,  "  ",  
                                                      false,  "  ",    23.45M);    
        Console.WriteLine("result:  "  +  result);    
    }
}
    
   
  
   



Output

result: hello 88 20 False 23.45


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo String
» String Concat