Created
February 25, 2022 11:51
-
-
Save charanhu/d1de9557f84f6958bf5e94772def1e5c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace CalculatorApplication { | |
class NullablesAtShow { | |
static void Main(string[] args) { | |
int? num1 = null; | |
int? num2 = 45; | |
double? num3 = new double?(); | |
double? num4 = 3.14157; | |
bool? boolval = new bool?(); | |
// display the values | |
Console.WriteLine("Nullables at Show: {0}, {1}, {2}, {3}", num1, num2, num3, num4); | |
Console.WriteLine("A Nullable boolean value: {0}", boolval); | |
Console.ReadLine(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment