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 214 views
214 views asked Dec 13, 2020 by avibootz
1 answer 270 views
2 answers 353 views
1 answer 283 views
1 answer 233 views
1 answer 264 views
...