Advertisement
bacco

Variable in Hexadecimal Format

May 22nd, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. using System;
  2.  
  3. namespace VariableinHexadecimalFormat
  4. {
  5.     class MainClass
  6.     {
  7.         public static void Main(string[] args)
  8.         {
  9.             var input = Console.ReadLine();
  10.             var output = Convert.ToInt32(input, 16);
  11.             Console.WriteLine(output);
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement