thegrudge

VariableInHexFormat

Nov 13th, 2014
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | None | 0 0
  1. using System;
  2. class VariableInHexFormat
  3. {
  4.     static void Main()
  5.     {
  6.         //Number 254 declared in hexadecimal.
  7.         int numberInHex = 0xFE;
  8.         Console.WriteLine("The number declared in hexadecimal format is {0}", numberInHex);
  9.  
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment