Advertisement
martinvalchev

Variable_in_Hex_Format

Jan 31st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Variable_in_Hex_Format
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string input = Console.ReadLine();
  10.  
  11.             int output = Convert.ToInt32(input, 16);
  12.            
  13.  
  14.             Console.WriteLine(output);
  15.  
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement