Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Declare five variables choosing for each of them the most appropriate of the types byte, sbyte, short, ushort, int, uint, long, ulong to represent the following values: 52130, -115, 4825932, 97, -10000. Choose a large enough type for each number to ensure it will fit in it. Try to compile the code.
- using System;
- using System.Runtime.InteropServices;
- class Program
- {
- static void Main()
- {
- ushort seconds = 52130;
- sbyte moneyAccount = -115;
- int lifeTime = 4825932;
- sbyte myGrandMa = 97;
- short carFilter = -10000;
- Console.WriteLine("{0}\n{1}\n{2}\n{3}\n{4}", seconds, moneyAccount, lifeTime, myGrandMa, carFilter);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment