Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- //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. Submit the source code of your Visual Studio
- //project as part of your homework submission.
- class DeclareVariables
- {
- static void Main()
- {
- ushort firstNumber = 52130;
- sbyte secondNumber = -117;
- int thirdNumber = 4825932;
- byte forthNumber = 97;
- short fifthNumber = -10000;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement