Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- //Create a program that assigns null values to an integer and to a double variable. Try to print these variables at the console.
- //Try to add some number or the null literal to these variables and print the result.
- class AssignNullValue
- {
- static void Main()
- {
- int? a = null; ;
- Console.WriteLine(a);
- double? b = null; ;
- Console.WriteLine(b);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement