Read double from keyboard and parse it : Double parse : Data Type C# Examples


C# Examples » Data Type » Double parse »

 

Read double from keyboard and parse it









    
using  System;    
    
class  MainClass  {          
    public  static  void  Main()  {          
        double  s1;  
        string  str;  
  
        Console.WriteLine("Enter  length  of  first  side:  ");  
        str  =  Console.ReadLine();  
        s1  =  Double.Parse(str);  
  
    }          
}
    
   
  
   



Output

Enter length of first side:
12


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Double parse