NedyalkoKikov

NullValuesArithmetic

Nov 5th, 2015
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. using System;
  2.  
  3. class NullValuesArithmetic
  4. {
  5. static void Main()
  6. {
  7. int? num = null;
  8. double? dsum = null;
  9. Console.WriteLine(num);
  10. Console.WriteLine(dsum);
  11. dsum = 3.2;
  12. num = 1;
  13. Console.WriteLine(dsum);
  14. Console.WriteLine(num);
  15.  
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment