Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class VariableInHexFormat
- {
- static void Main()
- {
- //Number 254 declared in hexadecimal.
- int numberInHex = 0xFE;
- Console.WriteLine("The number declared in hexadecimal format is {0}", numberInHex);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment