Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 4. Declare an integer variable and assign it with the value 254 in hexadecimal format.
- // Use Windows Calculator to find its hexadecimal representation.
- using System;
- namespace _04_HexVariable
- {
- class HexVariable
- {
- static void Main()
- {
- int numberInHex = 0xFE;
- Console.WriteLine("This is an int variable with hex value: {0}",numberInHex);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment