How to store null value to double with C#

1 Answer

0 votes
using System;

class Program
{
    static void Main() {
        double? x = null;
        double? y = 3.14;

        Console.WriteLine(x);
        Console.WriteLine(y);
    }
}
 
  
  
/*
run:
  

3.14

*/

 



answered Dec 13, 2020 by avibootz

Related questions

1 answer 129 views
129 views asked Dec 13, 2020 by avibootz
1 answer 172 views
2 answers 223 views
1 answer 205 views
1 answer 135 views
1 answer 171 views
...