Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class FiveNumbers
- {
- static void Main()
- {
- //Defining Variables
- ushort _52130 = 52130; //Using ushort type because 52130 is between 0 and 65535
- sbyte _115 = -115; //Using sbyte type because -115 is between -128 and 127
- uint _4825932 = 4825932; //Using uint type because 4825932 is between 0 and 4294967295
- byte _97 = 97; //Using byte type because 97 is between 0 and 255
- short _10000 = -10000; //Using short type because -10000 is between -32768 and 32767
- //Executing the values of the variables and a text representing their type
- Console.WriteLine("{0} is ushort type. \n" +
- "{1} is sbyte type.\n" +
- "{2} is uint type.\n" +
- "{3} is byte type.\n" +
- "{4} is short type.\n",
- _52130, _115, _4825932, _97, _10000);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment