Complete the code to declare a variable of type int with the value 100.
int number = [1];The value 100 is an integer literal, so it should be written without quotes or decimal points.
Complete the code to print the maximum value of a byte type.
Console.WriteLine(byte.[1]);The property MaxValue gives the largest value a byte can hold.
Fix the error in the code by choosing the correct type for a large integer value.
long bigNumber = [1];The value 2147483648 is too large for int, so we add 'L' to mark it as a long literal.
Fill both blanks to create a dictionary mapping integer types to their size in bytes.
var sizes = new Dictionary<string, int> { {"int", [1], {"long", [2] };An int is 4 bytes and a long is 8 bytes in C#.
Fill all three blanks to create a dictionary comprehension that maps integer types to their max values if the max value is greater than 1000.
var maxValues = new Dictionary<string, long> { {"int", [1], {"short", [2], {"long", [3] }.Where(kv => kv.Value > 1000).ToDictionary(kv => kv.Key, kv => kv.Value);We use the MaxValue property of each integer type to get their maximum values.